Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130640 付博苏逸 删除数字字符 C++ Compile Error 0 MS 0 KB 237 2025-09-14 15:45:30

Tests(0/0):


Code:

#include><bits/stdc++.h> using namespace std; int main(){ char s1[1000001],a; cin.getline(s1,1000001); for(int i=0;s1[i]!='\0';i++){ if(s1[i]>='0' && s1[i]<='9'){ continue; }else{ cout<<s1[i]; } } return 0; }


Run Info:

Main.cc:1:9: error: #include expects "FILENAME" or 
 #include>
         ^
Main.cc: In function 'int main()':
Main.cc:5:2: error: 'cin' was not declared in this scope
  cin.getline(s1,1000001);
  ^
Main.cc:10:4: error: 'cout' was not declared in this scope
    cout<