Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146144 向睿杰 按班分组 C++ Compile Error 0 MS 0 KB 159 2026-01-27 11:11:37

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a b s; cin>>a>>b; while(b!=0){ s=a%b; a=b; b=s; } cout<<b; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:11: error: expected initializer before 'b'
     int a b s;
           ^
Main.cc:5:10: error: 'a' was not declared in this scope
     cin>>a>>b;
          ^
Main.cc:5:13: error: 'b' was not declared in this scope
     cin>>a>>b;
             ^
Main.cc:7:3: error: 's' was not declared in this scope
   s=a%b;
   ^