Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159322 王艺博 按班分组 C++ Compile Error 0 MS 0 KB 184 2026-08-27 16:40:17

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,a,t; cin>>n>>a>>t; do{ c=a%b; a=b; b=c; }while(c!=0); cout<<a; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:4: error: 'c' was not declared in this scope
    c=a%b;
    ^
Main.cc:9:8: error: 'b' was not declared in this scope
    c=a%b;
        ^
Main.cc:12:10: error: 'c' was not declared in this scope
   }while(c!=0);
          ^