| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 96687 | 魏宏搏 | 15求两个数的最大公约数 | C++ | Compile Error | 0 MS | 0 KB | 200 | 2024-11-09 11:52:24 |
#include<iostream> uisng namespace std; int main(){ int a,b,yushu; cin>>a>>b; yushu=a%b; while(yushu != 0){ a=b; b=yushu; } cout<<b; return 0; }
Main.cc:2:1: error: 'uisng' does not name a type
uisng namespace 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:11:5: error: 'cout' was not declared in this scope
cout<