| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 127892 | 唐诗阳 | 删除数字字符 | C++ | Compile Error | 0 MS | 0 KB | 441 | 2025-07-29 19:46:42 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; char s[1000001]; int main(){ int x=0,a=0; cin>>s; for(int i=0;s[i]!='\0';i++) x++; for(int i=0;i<x;i++){ if(s[i]>='0' && <='9'){ continue; } else{ cout<<s[i]; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:13:25: error: expected primary-expression before '<=' token
if(s[i]>='0' && <='9'){
^
Main.cc:8:13: warning: unused variable 'a' [-Wunused-variable]
int x=0,a=0;
^