Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148724 马俊潇 12满足条件的四位数 C++ Compile Error 0 MS 0 KB 270 2026-02-28 15:48:55

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n,i,a,b,c,d,e=0; cin>>n; for(i=1;i<=n;i++){ cin>>i; a=i%1000; b=i%100/10; c=%10/100; d=i/1000; if(a-d-c-b>0){ e=e+1; } }cout<<e; return 0;}


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:7: error: expected primary-expression before '%' token
     c=%10/100;
       ^