Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
136299 左锶焜 消消乐 C++ Compile Error 0 MS 0 KB 442 2025-11-11 18:57:08

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i,g,s,b; for(i=100;i<=999;i++){ g=i%10; s=i%100/10; b=i/100; for(g==s&&s==b){ cout<<i<<endl; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:23: error: expected ';' before ')' token
         for(g==s&&s==b){
                       ^
Main.cc:13:17: warning: statement has no effect [-Wunused-value]
         for(g==s&&s==b){
                 ^
Main.cc:16:5: error: expected primary-expression before '}' token
     }
     ^
Main.cc:16:5: error: expected ';' before '}' token
Main.cc:16:5: error: expected primary-expression before '}' token
Main.cc:16:5: error: expected ')' before '}' token
Main.cc:16:5: error: expected primary-expression before '}' token