| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158335 | 杨正蠔 | 15求两个数的最大公约数 | C++ | Compile Error | 0 MS | 0 KB | 333 | 2026-08-21 10:10:12 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,d; cin>>a; cin>>b; cout<<a; } return 0; }
Main.cc: In function 'int main()':
Main.cc:8:13: warning: unused variable 'c' [-Wunused-variable]
int a,b,c,d;
^
Main.cc:8:15: warning: unused variable 'd' [-Wunused-variable]
int a,b,c,d;
^
Main.cc: At global scope:
Main.cc:13:5: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:14:1: error: expected declaration before '}' token
}
^