Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117647 欧阳俊懿 公约数问题 C++ Compile Error 0 MS 0 KB 388 2025-04-19 17:03:41

Tests(0/0):


Code:

#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 c(int a,int b){ if(b==) return a; else return c(b,a%b); } int main(){ int a,b; cin>>a>>b; cout<<c(a,b); return 0; }


Run Info:

Main.cc: In function 'int c(int, int)':
Main.cc:8:11: error: expected primary-expression before ')' token
     if(b==) return a;
           ^
Main.cc:10:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^