Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146432 李折曦 删除数字字符 C++ Compile Error 0 MS 0 KB 251 2026-01-28 14:24:04

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ char a[1000001]; cin.getline(a,1000001); int i=0; while(a[i]!='\0'){ if(a[i]>='0'and a[i]<='9'){ i++; continue; }else{ cout<<a[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(a[i]>='0'and a[i]<='9'){
            ^
Main.cc:8:19: error: expected ')' before 'a'
   if(a[i]>='0'and a[i]<='9'){
                   ^