提出 #5967
提出日時 | 2023/09/03 12:49:08 |
---|---|
問題 | A: OR and XOR |
ユーザ | binap |
言語 | C17 (gcc 12.2.0) |
得点 | 0 |
結果 | CE |
コンパイルエラー
./Main.c:2:1: error: unknown type name 'using'
2 | using namespace std;
| ^~~~~
./Main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
2 | using namespace std;
| ^~~
./Main.c:3:1: error: unknown type name 'using'
3 | using namespace atcoder;
| ^~~~~
./Main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'atcoder'
3 | using namespace atcoder;
| ^~~~~~~
./Main.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
5 | typedef vector<int> vi;
| ^
./Main.c:6:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
6 | typedef vector<long long> vl;
| ^
./Main.c:7:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
7 | typedef vector<vector<int>> vvi;
| ^
./Main.c:8:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
8 | typedef vector<vector<long long>> vvl;
| ^
./Main.c:9:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
9 | typedef pair<int,int> P;
| ^
./Main.c: In function 'main':
./Main.c:14:3: error: 'cin' undeclared (first use in this function)
14 | cin >> n;
| ^~~
./Main.c:14:3: note: each undeclared identifier is reported only once for each function it appears in
./Main.c:17:3: error: 'cout' undeclared (first use in this function)
17 | cout << x << "\n";
| ^~~~