Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73674 陈俊洁 消消乐 C++ Compile Error 0 MS 0 KB 179 2024-05-19 14:57:55

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main () { int a,b,c; for(int i==100;i<=999;i++) { a=i%10; b=i/100; c=i/10%10 if(a=b=c){ cout<<i<<endl; } } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:10: error: expected ';' before '==' token
 for(int i==100;i<=999;i++) {
          ^
Main.cc:5:10: error: expected primary-expression before '==' token
Main.cc:5:17: warning: for increment expression has no effect [-Wunused-value]
 for(int i==100;i<=999;i++) {
                 ^
Main.cc:5:22: error: expected ')' before ';' token
 for(int i==100;i<=999;i++) {
                      ^
Main.cc:5:23: error: 'i' was not declared in this scope
 for(int i==100;i<=999;i++) {
                       ^
Main.cc:4:5: warning: unused variable 'a' [-Wunused-variable]
 int a,b,c;
     ^
Main.cc:4:7: warning: unused variable 'b' [-Wunused-variable]
 int a,b,c;
       ^
Main.cc:4:9: warning: unused variable 'c' [-Wunused-variable]
 int a,b,c;
         ^