运行 ID: 323
Main.cc: In function ‘void printstr(char, char)’:
Main.cc:5:79: warning: too many arguments for format [-Wformat-extra-args]
if(l>=r||(isdigit(l)&&isalpha(r))||(isdigit(r)&&isalpha(r))) printf("-", l, r);
^
Main.cc:9:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(p1==1)
^~
Main.cc:11:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
r=tolower(r);
^
Main.cc:12:4: error: expected ‘}’ before ‘else’
else if(p1==2)
^~~~
Main.cc:12:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
else if(p1==2)
^~
Main.cc:14:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
r=toupper(r);
^
Main.cc: At global scope:
Main.cc:28:1: error: expected declaration before ‘}’ token
}
^