| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139263 | 向睿杰 | 09判断ASCLL码 | C++ | Compile Error | 0 MS | 0 KB | 297 | 2025-12-06 11:20:39 |
#include<iostream> using namespace stdi; int main() { char c; cin>>c; if('A'<=c&&c<='Z'){ cout<<"Upper Letter"<<endl; else if('a'<=c&&c<='z') cout<<"Lower Letter"<<endl; else if('0'<=c&&c<='9') cout<<"Digital"<<endl; else cout<<"other"<<endl; } return 0; }
Main.cc:2:17: error: 'stdi' is not a namespace-name
using namespace stdi;
^
Main.cc:2:21: error: expected namespace-name before ';' token
using namespace stdi;
^
Main.cc: In function 'int main()':
Main.cc:6:2: error: 'cin' was not declared in this scope
cin>>c;
^
Main.cc:6:2: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:8:3: error: 'cout' was not declared in this scope
cout<<"Upper Letter"<& __os)
^
Main.cc:9:2: error: expected '}' before 'else'
else if('a'<=c&&c<='z')
^
Main.cc:10:6: error: 'cout' was not declared in this scope
cout<<"Lower Letter"<& __os)
^
Main.cc:12:6: error: 'cout' was not declared in this scope
cout<<"Digital"<& __os)
^
Main.cc:14:6: error: 'cout' was not declared in this scope
cout<<"other"<& __os)
^
Main.cc: At global scope:
Main.cc:16:2: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:17:1: error: expected declaration before '}' token
}
^