ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 41b8977f-1888-441c-b2b4-6cd92227588b
コード
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; for(int i=0; i<S.size(); i++){ if(S.at(i)=='a'){ S.at(i)='p'; } else if(S.at(i)=='c'){ S.at(i)='a'; }' else if(S.at(i)=='P'){ S.at(i)='c'; } cout<<S<<"MAN"<<endl; }
結果
問題
点数
言語
結果
実行時間
メモリ
D - PACMAN
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp:12:9: warning: missing terminating ' character 12 | }' | ^ Main.cpp:12:9: error: missing terminating ' character Main.cpp: In function 'int main()': Main.cpp:18:5: error: expected '}' at end of input 18 | } | ^ Main.cpp:3:12: note: to match this '{' 3 | int main() { | ^