Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
75260 刘泽熙 12满足条件的四位数 C++ Compile Error 0 MS 0 KB 244 2024-05-26 15:41:22

Tests(0/0):


Code:

#incliude<bits/stdc++.h> using namespace std; int main(){ int n,z,gd=0; cin>>n; for(int i=1;i<=n;i++){ cin>>z; int g=z%10; int s=z/10%10; int b=z/100%10; int q=z/1000%10; if(g-s-b-q){ n=n+1; } cout<<n; } }


Run Info:

Main.cc:1:2: error: invalid preprocessing directive #incliude
 #incliude
  ^
Main.cc: In function 'int main()':
Main.cc:5:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^
Main.cc:15:3: error: 'cout' was not declared in this scope
   cout<