Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138887 傅小轩 15求两个数的最大公约数 C++ Compile Error 0 MS 0 KB 195 2025-11-30 11:56:54

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,b,m; cin>>a>>b; while(a>b){ if(a%15==0 and b%15==0){ i=m; } i--; } cout<<a; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:6: error: 'i' was not declared in this scope
      i=m;
      ^
Main.cc:10:1: error: 'i' was not declared in this scope
 i--;
 ^