| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146421 | 张宇泽 | 删除数字字符 | C++ | Compile Error | 0 MS | 0 KB | 216 | 2026-01-28 14:12:39 |
#include<bits/stdc++.h> using namespace std; int main(){ char s[10000001]; int i=0; while(s[i]!='\0'){ if(s[i]>='0'and s[i]<='9'){ i++; continue; }else{ cout<<s[1]; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:12: error: unable to find character literal operator 'operator""and' with 'char' argument
if(s[i]>='0'and s[i]<='9'){
^
Main.cc:7:19: error: expected ')' before 's'
if(s[i]>='0'and s[i]<='9'){
^