Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114853 | 吴诗涵 | 最大公约数(函数) | C++ | Compile Error | 0 MS | 0 KB | 427 | 2025-03-23 19:12:45 |
#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 gcd(int a,int b){ while(b){ int t=a%b; a=b; b=t; } return a; } int main(){ int n,m; cin>>n>>m; cout<<gcd(n,m); } return 0; }
Main.cc:19:5: error: expected unqualified-id before 'return' return 0; ^ Main.cc:20:1: error: expected declaration before '}' token } ^