| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150295 | 李亭绪 | 字符替换 | C++ | Compile Error | 0 MS | 0 KB | 355 | 2026-03-25 19:57:13 |
#include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ char s1,s2; char a[200]; cin>>a; cin>>s1>>s2; for(int i;i<=200;i++) { if(a[i]==s1) a[i]=s2; } cout<<a; return 0; }
Main.cc: In function 'int main()':
Main.cc:8:5: error: 'cin' was not declared in this scope
cin>>a;
^
Main.cc:15:5: error: 'cout' was not declared in this scope
cout<