Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118862 | 张文浩 | 07大小写转换 | C++ | Compile Error | 0 MS | 0 KB | 582 | 2025-05-10 16:09:17 |
#include<iostream> using namespace std; int main(){ char c; cin>>c; if(isupper(c)){ c=tolower(c); }else { c=toupper(c); cout<<c<<endl; return 0; }#include<iostream> using namespace std; int main(){ char c; cin>>c; if(isupper(c)){ c=tolower(c); }else { c=toupper(c); cout<<c<<endl; return 0; }#include<iostream> using namespace std; int main(){ char c; cin>>c; if(isupper(c)){ c=tolower(c); }else { c=toupper(c); cout<<c<<endl; return 0; }
Main.cc:6:2: error: stray '\357' in program if(isupper(c)){ ^ Main.cc:6:2: error: stray '\274' in program Main.cc:6:2: error: stray '\210' in program Main.cc:6:2: error: stray '\357' in program Main.cc:6:2: error: stray '\274' in program Main.cc:6:2: error: stray '\210' in program Main.cc:19:2: error: stray '#' in program }#include ^ Main.cc:24:2: error: stray '\357' in program if(isupper(c)){ ^ Main.cc:24:2: error: stray '\274' in program Main.cc:24:2: error: stray '\210' in program Main.cc:24:2: error: stray '\357' in program Main.cc:24:2: error: stray '\274' in program Main.cc:24:2: error: stray '\210' in program Main.cc:37:2: error: stray '#' in program }#include ^ Main.cc:42:2: error: stray '\357' in program if(isupper(c)){ ^ Main.cc:42:2: error: stray '\274' in program Main.cc:42:2: error: stray '\210' in program Main.cc:42:2: error: stray '\357' in program Main.cc:42:2: error: stray '\274' in program Main.cc:42:2: error: stray '\210' in program Main.cc: In function 'int main()': Main.cc:6:7: error: expected '(' before 'isupper' if(isupper(c)){ ^ Main.cc:8:2: error: 'else' without a previous 'if' }else { ^ Main.cc:19:3: error: 'include' was not declared in this scope }#include ^ Main.cc:19:19: error: expected primary-expression before '>' token }#include ^ Main.cc:20:1: error: expected primary-expression before 'using' using namespace std; ^ Main.cc:21:11: error: a function-definition is not allowed here before '{' token int main(){ ^ Main.cc:55:1: error: expected '}' at end of input } ^