Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142238 孔声豪 12满足条件的四位数 C++ Compile Error 0 MS 0 KB 247 2026-01-02 12:06:06

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:12: error: 'c' was not declared in this scope
            c++; 
            ^
Main.cc:12:10: error: 'c' was not declared in this scope
    cout<