Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
75460 申明宇 删除数字字符 C++ Compile Error 0 MS 0 KB 262 2024-05-26 18:12:01

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ char s[1000001]; int i=0; cin>>s; while(s[i]!='\0'){ if(s[i]<"0"||a[i]>"9") cout<<a[i] i++; } cout<<s; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:17: warning: comparison with string literal results in unspecified behaviour [-Waddress]
         if(s[i]<"0"||a[i]>"9")
                 ^
Main.cc:9:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:9:22: error: 'a' was not declared in this scope
         if(s[i]<"0"||a[i]>"9")
                      ^