Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138208 李馥甄 公约数问题 C++ Compile Error 0 MS 0 KB 196 2025-11-23 18:10:36

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int gcd(int x,int y){ if(x%y==0){ rteurn y; } return gcd(y,x%y); } int main(){ int a,c; cin>>a>>c; cout<<gcd(a,c); return 0; }


Run Info:

Main.cc: In function 'int gcd(int, int)':
Main.cc:5:3: error: 'rteurn' was not declared in this scope
   rteurn y;
   ^