Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81978 石晋骁 删除数字字符 C++ Compile Error 0 MS 0 KB 229 2024-07-12 16:33:00

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; char s[1000000]; int main(){ cin >> s; = for(int i = 0;i < strlen(s);i++){ if(s[i] >= '0' && s[i] <= '9'){ continue; }else{ cout << s[i]; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:12: error: expected primary-expression before '=' token
  cin >> s; =
            ^
Main.cc:6:2: error: expected primary-expression before 'for'
  for(int i = 0;i < strlen(s);i++){
  ^
Main.cc:6:16: error: 'i' was not declared in this scope
  for(int i = 0;i < strlen(s);i++){
                ^