Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147456 曾钰涵 满足条件的数 C++ Compile Error 0 MS 0 KB 238 2026-02-05 11:29:46

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; break; } i++; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:14: error: expected primary-expression before '==' token
       if(a%i)==(b%i)&&(b%i)==(c%i){
              ^