| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128929 | 罗安博 | 删除数字字符 | C++ | Compile Error | 0 MS | 0 KB | 196 | 2025-08-21 10:07:15 |
#include<bits/stdc++.h> using namespace std; char a[1000000]; int main(){ cin>>a; int b=strlen(a) ; for(int i=0;i<=b-1;i++){ if(a[i]<'0'||&&a[i]>'9'){ cout<<a[i]; } } }
Main.cc: In function 'int main()':
Main.cc:8:18: warning: the address of 'a' will always evaluate as 'true' [-Waddress]
if(a[i]<'0'||&&a[i]>'9'){
^
Main.cc:8:19: error: expected ')' before '[' token
if(a[i]<'0'||&&a[i]>'9'){
^
Main.cc:8:18: error: label 'a' used but not defined
if(a[i]<'0'||&&a[i]>'9'){
^