| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62102 | 张誉腾 | 字符替换 | C++ | Compile Error | 0 MS | 0 KB | 177 | 2023-12-17 11:54:16 |
v#include<bits/stdc++.h> using namespace std; int main() { char s[199]; char a; scanf("%s",s); cin>>a; for(int i=0;i<a;i++){ if(s[i]==a){ } } cout<<s; }
Main.cc:1:2: error: stray '#' in program
v#include
^
Main.cc:1:1: error: 'v' does not name a type
v#include
^
Main.cc: In function 'int main()':
Main.cc:7:14: error: 'scanf' was not declared in this scope
scanf("%s",s);
^
Main.cc:8:2: error: 'cin' was not declared in this scope
cin>>a;
^
Main.cc:13:2: error: 'cout' was not declared in this scope
cout<