| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72048 | 伍思语 | 01第一个C++程序 | C++ | Compile Error | 0 MS | 0 KB | 86 | 2024-04-30 18:12:42 |
#include<iostream> using namespace; int main{ cout<<"hello,lema"; return 0; }
Main.cc:2:16: error: expected identifier before ';' token
using namespace;
^
Main.cc:4:1: error: 'cout' was not declared in this scope
cout<<"hello,lema";
^
Main.cc:4:1: 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:4:19: error: expected '}' before ';' token
cout<<"hello,lema";
^
Main.cc:5:1: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:6:1: error: expected declaration before '}' token
}
^