Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100897 蔡佳轩 满足条件四位数的个数 C++ Compile Error 0 MS 0 KB 302 2024-12-14 11:17:46

Tests(0/0):


Code:

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


Run Info:

Main.cc:2:1: error: 'suing' does not name a type
 suing namespace std;
 ^
Main.cc: In function 'int main()':
Main.cc:5:5: error: 'cin' was not declared in this scope
     cin>>n;
     ^
Main.cc:5:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
Main.cc:16:1: error: 'cout' was not declared in this scope
 cout<