| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 85481 | 王珠潏 | 满足条件四位数的个数 | C++ | Compile Error | 0 MS | 0 KB | 313 | 2024-07-17 17:34:02 |
#include<iostream> using namespace std; int main(){ int n,a,j=0;g,s,b,q; cin>>n; for(int i=0;i<n;i++){ cin>>a; g=a%10; s=a/10%10; b=a/100%10; q=a/1000; if((g-s-b-q)>0){ j++; } } cout<<j<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:4:17: error: 'g' was not declared in this scope
int n,a,j=0;g,s,b,q;
^
Main.cc:4:19: error: 's' was not declared in this scope
int n,a,j=0;g,s,b,q;
^
Main.cc:4:21: error: 'b' was not declared in this scope
int n,a,j=0;g,s,b,q;
^
Main.cc:4:23: error: 'q' was not declared in this scope
int n,a,j=0;g,s,b,q;
^