ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 dc84e3c8-5671-48c5-a5fc-9f0ea2ebad9d
コード
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; cher 'A' = 'P'; cher 'P' = 'C'; cher 'C' = 'A'; } cout << str << "MAN" << endl; }
結果
問題
点数
言語
結果
実行時間
メモリ
D - PACMAN
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:9:9: error: 'cher' was not declared in this scope; did you mean 'char'? 9 | cher 'A' = 'P'; | ^~~~ | char Main.cpp:11:13: error: expected ';' before 'P' 11 | cher 'P' = 'C'; | ^~~~ | ; Main.cpp:13:13: error: expected ';' before 'C' 13 | cher 'C' = 'A'; | ^~~~ | ; Main.cpp: At global scope: Main.cpp:16:5: error: 'cout' does not name a type 16 | cout << str << "MAN" << endl; | ^~~~ Main.cpp:17:1: error: expected declaration before '}' token 17 | } | ^