Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81988 陈俊洁 删除数字字符 C++ Compile Error 0 MS 0 KB 209 2024-07-12 16:35:45

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; char s[1000000]; int main() { cin>>s int s_l=strlen(s); for(int i=0;i<s_l;i++){ if(s[i]<='9'&&s[i]>='0'){ coutinue; } else{ cout<<s[i]; } } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:1: error: expected ';' before 'int'
 int s_l=strlen(s);
 ^
Main.cc:7:15: error: 's_l' was not declared in this scope
 for(int i=0;i