Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79115 段文昊 含有3的所有数 C++ Compile Error 0 MS 0 KB 235 2024-06-30 13:52:54

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i = 1;i<n;i++){ int g= i%10; int s=i/10%10; int c=i/100%10; for(g==3||s==3||c==3){ cout<<i<<" "; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:23: error: expected ';' before ')' token
   for(g==3||s==3||c==3){
                       ^
Main.cc:11:17: warning: statement has no effect [-Wunused-value]
   for(g==3||s==3||c==3){
                 ^
Main.cc:15:2: error: expected primary-expression before '}' token
  }
  ^
Main.cc:15:2: error: expected ';' before '}' token
Main.cc:15:2: error: expected primary-expression before '}' token
Main.cc:15:2: error: expected ')' before '}' token
Main.cc:15:2: error: expected primary-expression before '}' token