Compiler output
prog.cpp: In function 'void check(std::string, int, int)':
prog.cpp:19:17: error: expected primary-expression before 'unsigned'
if(i == j && (unsigned) == str.size()){
^
prog.cpp:19:17: error: expected ')' before 'unsigned'
prog.cpp:24:3: error: expected ')' before 'while'
while((unsigned)j < str.size()){
^
prog.cpp:32:1: error: expected primary-expression before '}' token
}
^
prog.cpp: At global scope:
prog.cpp:18:19: warning: unused parameter 'str' [-Wunused-parameter]
void check(string str, int i, int j){
^