Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128926 罗安博 删除数字字符 C++ Compile Error 0 MS 0 KB 196 2025-08-21 10:05:51

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; char a[10000000]; 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]; } } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:11: error: expected primary-expression before '<=' token
   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){
                  ^