| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146416 | 王培臻 | 删除数字字符 | C++ | Compile Error | 0 MS | 0 KB | 255 | 2026-01-28 14:09:35 |
#include<bits/stdc++.h> using namespace std; int main() { char a[1000001]; cin>>a; int i=0; while(s[i]!='\0'){ if(s[i]>'0'and s[i]<='9'){ continue; i++; }else{ cout<<a[i]; } } return 0; } //cin.getline(a,1000001);
Main.cc: In function 'int main()':
Main.cc:7:8: error: 's' was not declared in this scope
while(s[i]!='\0'){
^
Main.cc:8:11: error: unable to find character literal operator 'operator""and' with 'char' argument
if(s[i]>'0'and s[i]<='9'){
^
Main.cc:8:18: error: expected ')' before 's'
if(s[i]>'0'and s[i]<='9'){
^