Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4957 若楷编程专用 09判断ASCLL码 C++ Compile Error 0 MS 0 KB 279 2024-10-12 20:52:14

Tests(0/0):


Code:

int main(){ char a; cin>>a; if(a>='A' && a<='Z'){ cout<<"upper letter"; } else if(a>='a' && a<='z'){ cout<<"lower letter"; } else if(a>='0' && a<='9'){ cout<<"digital"; } else{ cout<<"other"; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:3:2: error: 'cin' was not declared in this scope
  cin>>a;
  ^
Main.cc:5:9: error: 'cout' was not declared in this scope
         cout<"upper letter";            
         ^
Main.cc:8:6: error: 'cout' was not declared in this scope
      cout<<"lower letter";     
      ^
Main.cc:11:3: error: 'cout' was not declared in this scope
   cout<<"digital";
   ^
Main.cc:14:3: error: 'cout' was not declared in this scope
   cout<<"other";
   ^