Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115459 袁龙浩 消消乐 C++ Compile Error 0 MS 0 KB 443 2025-03-30 15:00:49

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 g,s,b for(int i=100;i<=999;i++){ g=i%10; s=i%100/10; b=i/100; if(g==s && s==b){ cout<<i<<" "; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:5: error: expected initializer before 'for'
     for(int i=100;i<=999;i++){
     ^
Main.cc:9:19: error: 'i' was not declared in this scope
     for(int i=100;i<=999;i++){
                   ^
Main.cc:8:9: warning: unused variable 'g' [-Wunused-variable]
     int g,s,b
         ^
Main.cc:8:11: warning: unused variable 's' [-Wunused-variable]
     int g,s,b
           ^