| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 141125 | 刘杨国卿 | 消消乐 | C++ | Compile Error | 0 MS | 0 KB | 214 | 2025-12-21 11:42:32 |
#include <bits/stdc++.h> using namespace std; int main (){ int a,b,c; for(i=100;i<=999;i++){ g=i%10; s=i/10%10; b=i/100; if(g==b&&g==s){ cout<<i<<endl; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:5:6: error: 'i' was not declared in this scope
for(i=100;i<=999;i++){
^
Main.cc:6:6: error: 'g' was not declared in this scope
g=i%10;
^
Main.cc:7:6: error: 's' was not declared in this scope
s=i/10%10;
^
Main.cc:4:6: warning: unused variable 'a' [-Wunused-variable]
int a,b,c;
^
Main.cc:4:10: warning: unused variable 'c' [-Wunused-variable]
int a,b,c;
^