| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139944 | 向运淇 | 09能否赴约 | C++ | Compile Error | 0 MS | 0 KB | 688 | 2025-12-13 11:56:23 |
#include<iostream> uslng namespace std; int main(){ int a; cin>>a; switch(a){ case 1: cout<<"no"; break; case 3: cout<<"no"; break; case 5: cout<<"no"; break; case 2: cout<<"yes"; break; case 4: cout<<"yes"; break; case 6: cout<<"yes"; break; case 7: cout<<"yes"; break; return 0; }
Main.cc:2:1: error: 'uslng' does not name a type
uslng namespace std;
^
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
cin>>a;
^
Main.cc:5:5: 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:20: error: 'cout' was not declared in this scope
cout<<"no";
^
Main.cc:8:20: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
Main.cc:29:1: error: expected '}' at end of input
}
^