/in/foo.cc:10:41: warning: missing terminating ' character
if (str[i] >= 'A' && str[i] <= 'Z) {
^
/in/foo.cc:10:41: error: missing terminating ' character
if (str[i] >= 'A' && str[i] <= 'Z) {
^~~~~
/in/foo.cc: In function 'int Diff(const char*)':
/in/foo.cc:9:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i <= strlen(str); i++) {
~~^~~~~~~~~~~~~~
/in/foo.cc:11:17: error: expected ')' before ';' token
big++;
^
/in/foo.cc:12:10: error: 'else' without a previous 'if'
}else if(str[i] >= 'a' && str[i] <= 'z') {
^~~~
/in/foo.cc:12:22: error: 'i' was not declared in this scope
}else if(str[i] >= 'a' && str[i] <= 'z') {
^
/in/foo.cc:15:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: At global scope:
/in/foo.cc:16:5: error: expected unqualified-id before 'return'
return big-small;
^~~~~~
/in/foo.cc:17:1: error: expected declaration before '}' token
}
^