Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139254 孔声豪 09判断ASCLL码 C++ Compile Error 0 MS 0 KB 264 2025-12-06 10:39:11

Tests(0/0):


Code:

include <iostream> using namespace std; int main(){ char a; cin>>a; if(a>=65&&a<=90){ cout<<"Upper Letter"; } else if(a>=97&&a<=122){ cout<<"Lower Letter"; }else if(a>=49&&a<=57){ cout<<"Digital"; }else{ cout<<"other"; } }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include  
 ^
Main.cc: In function 'int main()':
Main.cc:5:1: error: 'cin' was not declared in this scope
 cin>>a; 
 ^
Main.cc:7:2: error: 'cout' was not declared in this scope
  cout<<"Upper Letter";  
  ^
Main.cc:10:2: error: 'cout' was not declared in this scope
  cout<<"Lower Letter"; 
  ^
Main.cc:12:2: error: 'cout' was not declared in this scope
  cout<<"Digital"; 
  ^
Main.cc:14:2: error: 'cout' was not declared in this scope
  cout<<"other";  
  ^