| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68450 | 周奕辰 | 05交换数据 | C++ | Compile Error | 0 MS | 0 KB | 161 | 2024-03-23 14:04:56 |
# include <iostream> using namepspace std; int main(){ int a,b,c; cin >> a >> b; c=a; a=b' b=c; cout << a << b; return 0; }
Main.cc:7:8: warning: missing terminating ' character
a=b'
^
Main.cc:7:5: error: missing terminating ' character
a=b'
^
Main.cc:2:7: error: expected nested-name-specifier before 'namepspace'
using namepspace std;
^
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
cin >> a >> b;
^
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:5: error: expected ';' before 'b'
b=c;
^
Main.cc:9:5: error: 'cout' was not declared in this scope
cout << a << b;
^
Main.cc:9: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
^