| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79118 | 尚雨钒 | 含有3的所有数 | C++ | Compile Error | 0 MS | 0 KB | 226 | 2024-06-30 13:54:03 |
#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 b=i/100%10; }if(g==3||s==3||b==3){ cout<<i<<" "<<" "; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:7: warning: unused variable 'g' [-Wunused-variable]
int g=i%10;
^
Main.cc:8:7: warning: unused variable 's' [-Wunused-variable]
int s=i/10%10;
^
Main.cc:9:7: warning: unused variable 'b' [-Wunused-variable]
int b=i/100%10;
^
Main.cc:10:6: error: 'g' was not declared in this scope
}if(g==3||s==3||b==3){
^
Main.cc:10:12: error: 's' was not declared in this scope
}if(g==3||s==3||b==3){
^
Main.cc:10:18: error: 'b' was not declared in this scope
}if(g==3||s==3||b==3){
^
Main.cc:11:9: error: 'i' was not declared in this scope
cout<