Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
118863 张文浩 07大小写转换 C++ Compile Error 0 MS 0 KB 198 2025-05-10 16:11:56

Tests(0/0):


Code:

#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; }


Run Info:

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: 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 {
  ^