Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105122 | 李朋秦 | 07判断奇数 | C++ | Compile Error | 0 MS | 0 KB | 194 | 2025-01-12 14:50:49 |
#include<iostream> #include<cstdio> #include<cstring> std; int main(){ int n; cin>>n; if(n%2==0){ cout<<"No"; } else{ cout<<"Yes"; } return 0; }
Main.cc:3:19: warning: extra tokens at end of #include directive #include std; ^ Main.cc: In function 'int main()': Main.cc:6:5: error: 'cin' was not declared in this scope cin>>n; ^ Main.cc:6: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:5: error: 'cout' was not declared in this scope cout<<"No"; ^ Main.cc:8:5: 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:11:5: error: 'cout' was not declared in this scope cout<<"Yes"; ^ Main.cc:11:5: 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 ^