| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136711 | 鄢晨曦 | 12满足条件的四位数 | C++ | Compile Error | 0 MS | 0 KB | 236 | 2025-11-15 15:02:47 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,g,s,b,q,sum=0,n; cin>>n; for(int a=n;a<=n;a++){ cin>>m; g=m%10; s=m/10%10; b=m/100%10; q=m/1000%10; if(g-s-b-q>0) } return 0; }
Main.cc: In function 'int main()':
Main.cc:13:2: error: expected primary-expression before '}' token
}
^
Main.cc:4:19: warning: unused variable 'sum' [-Wunused-variable]
int m,g,s,b,q,sum=0,n;
^