Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146431 汪义罗 删除数字字符 C++ Compile Error 0 MS 0 KB 236 2026-01-28 14:21:08

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char s[10000001]; int i=0; cin>>s; while(s[i]!='\0'){ if(s[i]>='0'and s[i]<='9'){ i++; continue; }else{ cout<<s[i]; i++; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:12: error: unable to find character literal operator 'operator""and' with 'char' argument
   if(s[i]>='0'and s[i]<='9'){
            ^
Main.cc:8:19: error: expected ')' before 's'
   if(s[i]>='0'and s[i]<='9'){
                   ^