Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154310 张皓凯 12满足条件的四位数 C++ Compile Error 0 MS 0 KB 251 2026-05-30 10:19:55

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n,x=0; for(int i=0;i<n;i++) { int a; cin>>a; if(a%10-a/1000-a/100%10-a/10%100>0) x+1 } cout<<x<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:5: error: expected ';' before '}' token
     }
     ^
Main.cc:11:14: warning: statement has no effect [-Wunused-value]
             x+1
              ^