| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134949 | 赵悦然 | 消消乐 | C++ | Compile Error | 0 MS | 0 KB | 282 | 2025-11-01 19:00:01 |
#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){ else if(b==c){ cout<<i<<endl; } } }
Main.cc: In function 'int main()':
Main.cc:12:13: error: expected '}' before 'else'
else if(b==c){
^
Main.cc:12:24: error: 'c' was not declared in this scope
else if(b==c){
^