Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134951 赵悦然 消消乐 C++ Compile Error 0 MS 0 KB 260 2025-11-01 19:03:02

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int i=100; int g,s,b; while(i<=999){ i++; g=i%10; s=(i/10)%10; b=(i/100)%10; if(g==b&&b==c){ cout<<i<<endl; } } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:21: error: 'c' was not declared in this scope
         if(g==b&&b==c){
                     ^