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