Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66477 何思佳 09判断ASCLL码 C++ Compile Error 0 MS 0 KB 522 2024-03-09 10:57:30

Tests(0/0):


Code:

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


Run Info:

Main.cc:11:3: error: stray '#' in program
  }#include
   ^
Main.cc: In function 'int main()':
Main.cc:11:4: error: 'include' was not declared in this scope
  }#include
    ^
Main.cc:11:20: error: expected primary-expression before '>' token
  }#include
                    ^
Main.cc:12:1: error: expected primary-expression before 'using'
 using namespace std;
 ^
Main.cc:13:11: error: a function-definition is not allowed here before '{' token
 int main(){
           ^
Main.cc:37:1: error: expected '}' at end of input
 }
 ^