Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147457 余建成 满足条件的数 C++ Compile Error 0 MS 0 KB 218 2026-02-05 11:30:25

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int i=2 while(1) { if(a%i)==(b%i)&&(b%i)==(c%i) { cout<<i<<endl; break; } i++ } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:2: error: expected ',' or ';' before 'while'
  while(1)
  ^
Main.cc:7:9: warning: unused variable 'i' [-Wunused-variable]
     int i=2
         ^
Main.cc:18:1: error: expected '}' at end of input
 }
 ^