ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 04329f9d-bd6e-4759-b3e0-f99c6c9ecbb3
コード
#include <bits/stdc++.h> using namespace std; int main() { int a; int c; int p; int a=p; int c=a; int p=C; string s = "acp"; cout << sMAN << endl; }
結果
問題
点数
言語
結果
実行時間
メモリ
D - PACMAN
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:8:7: error: redeclaration of 'int a' 8 | int a=p; | ^ Main.cpp:5:7: note: 'int a' previously declared here 5 | int a; | ^ Main.cpp:9:7: error: redeclaration of 'int c' 9 | int c=a; | ^ Main.cpp:6:7: note: 'int c' previously declared here 6 | int c; | ^ Main.cpp:10:7: error: redeclaration of 'int p' 10 | int p=C; | ^ Main.cpp:7:7: note: 'int p' previously declared here 7 | int p; | ^ Main.cpp:10:9: error: 'C' was not declared in this scope 10 | int p=C; | ^ Main.cpp:12:11: error: 'sMAN' was not declared in this scope 12 | cout << sMAN << endl; | ^~~~