| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81936 | 石晋骁 | 删除数字字符 | C++ | Compile Error | 0 MS | 0 KB | 215 | 2024-07-12 16:19:49 |
#include<bits/stdc++.h> using namespace std; int main(){ char s[1000000]; cin.getline(s,1000000); for(int i = 0;i < strlen(s);i++){ if(s[i] >= 0 && s[i] <= 9){ cout << a[i]; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:6:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < strlen(s);i++){
^
Main.cc:8:12: error: 'a' was not declared in this scope
cout << a[i];
^