ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 ee0c3231-33cc-4aa2-80e9-0a01babb1dce
コード
#include <bits/stdc++.h> using namespace std; int main() { string s= ACP; char A='A'; char C='C'; char P='P'; int A = "P"; int C = "A"; int P = "C"; cout << "s" <<"MAN" << endl; }
結果
問題
点数
言語
結果
実行時間
メモリ
D - PACMAN
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp:9:1: error: extended character is not valid in an identifier 9 | int A = "P"; | ^ Main.cpp:9:1: error: extended character is not valid in an identifier Main.cpp:10:1: error: extended character is not valid in an identifier 10 | int C = "A"; | ^ Main.cpp:10:1: error: extended character is not valid in an identifier Main.cpp:11:1: error: extended character is not valid in an identifier 11 | int P = "C"; | ^ Main.cpp:11:1: error: extended character is not valid in an identifier Main.cpp: In function 'int main()': Main.cpp:5:13: error: 'ACP' was not declared in this scope 5 | string s= ACP; | ^~~ Main.cpp:9:1: error: '\U00003000int\U00003000A' was not declared in this scope 9 | int A = "P"; | ^~~~~~~~ Main.cpp:10:1: error: '\U00003000int\U00003000C' was not declared in this scope 10 | int C = "A"; | ^~~~~~~~ Main.cpp:11:1: error: '\U00003000int\U00003000P' was not declared in this scope 11 | int P = "C"; | ^~~~~~~~