Main.cc: In function ‘int main()’:
Main.cc:8:29: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(f=='-'&&af>be&&(be>='0'&&af<='9'||be>='a'&&af<='z')){
~~~~~~~^~~~~~~~~
Main.cc:18:3: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
Main.cc:20:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
i++;
^
Main.cc: At global scope:
Main.cc:22:2: error: expected unqualified-id before ‘return’
return 0;
^~~~~~
Main.cc:23:1: error: expected declaration before ‘}’ token
}
^
Main.cc: In function ‘int main()’:
Main.cc:6:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%s",&p1,&p2,&p3,ch);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~