| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155097 | 杨金卓 | 删除数字字符 | C++ | Compile Error | 0 MS | 0 KB | 213 | 2026-05-31 14:19:31 |
#include<bits/stdc++.h> using namespace std; char s[1000000]; int main(){ cin>>s; for(int i=0;s[i]!='\0';i++){ if(!(s[i]>='0'&&s[i]<='9'){ cout>>s[i]; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:29: error: expected ')' before '{' token
if(!(s[i]>='0'&&s[i]<='9'){
^
Main.cc:10:2: error: expected primary-expression before '}' token
}
^