Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81927 杜奕辰 删除数字字符 C++ Compile Error 0 MS 0 KB 454 2024-07-12 16:14:39

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char n[10000000]; cin>>n; while(int i=0; i<strlen(n); i++) if(n[i]<'0'||n[i]>'9') { cout<<n[i]; } return 0; } #include<bits/stdc++.h> using namespace std; int main() { char n[10000000]; cin>>n; while(int i=0; i<strlen(n); i++) if(n[i]<'0'||n[i]>'9') { cout<<n[i]; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:18: error: expected ')' before ';' token
     while(int i=0; i