# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1122320 | 2024-11-29 17:57:54 | khome | 콤보 (IOI18_combo) | C++17 | 컴파일 에러 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int N) {
vector<char> a;
a={'X', 'Y', 'A', 'B'};
string res, cur;
char per;
int ab = press("AB"), bx = press("BX"), id=2;
if (ab == 1) {
·id = 2;
·res = "AB";
}
·if (ab == 1) {
·if (bx == 1) { //BX = 1;
·id=3;
int by = press("BY");
if (by == 2) res = "BY";
else res = "BY";
}
·if (bx == 2) {
·id = 3;
res += "BX";
}
·if (bx == 0) { // BX = 0; AY, AX
·id = 2;
int ay = press("AY");
if (ay == 2) res = "AY";
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
컴파일 시 표준 에러 (stderr) 메시지
combo.cpp:13:2: error: extended character is not valid in an identifier 13 | id = 2; | ^ combo.cpp:13:5: error: extended character is not valid in an identifier 13 | id = 2; | ^ combo.cpp:13:8: error: extended character is not valid in an identifier 13 | id = 2; | ^ combo.cpp:13:11: error: extended character is not valid in an identifier 13 | id = 2; | ^ combo.cpp:14:2: error: extended character is not valid in an identifier 14 | res = "AB"; | ^ combo.cpp:14:5: error: extended character is not valid in an identifier 14 | res = "AB"; | ^ combo.cpp:14:8: error: extended character is not valid in an identifier 14 | res = "AB"; | ^ combo.cpp:14:11: error: extended character is not valid in an identifier 14 | res = "AB"; | ^ combo.cpp:16:2: error: extended character is not valid in an identifier 16 | if (ab == 1) { | ^ combo.cpp:16:5: error: extended character is not valid in an identifier 16 | if (ab == 1) { | ^ combo.cpp:17:2: error: extended character is not valid in an identifier 17 | if (bx == 1) { //BX = 1; | ^ combo.cpp:17:5: error: extended character is not valid in an identifier 17 | if (bx == 1) { //BX = 1; | ^ combo.cpp:17:8: error: extended character is not valid in an identifier 17 | if (bx == 1) { //BX = 1; | ^ combo.cpp:17:11: error: extended character is not valid in an identifier 17 | if (bx == 1) { //BX = 1; | ^ combo.cpp:18:2: error: extended character is not valid in an identifier 18 | id=3; | ^ combo.cpp:18:5: error: extended character is not valid in an identifier 18 | id=3; | ^ combo.cpp:18:8: error: extended character is not valid in an identifier 18 | id=3; | ^ combo.cpp:18:11: error: extended character is not valid in an identifier 18 | id=3; | ^ combo.cpp:18:14: error: extended character is not valid in an identifier 18 | id=3; | ^ combo.cpp:18:17: error: extended character is not valid in an identifier 18 | id=3; | ^ combo.cpp:23:2: error: extended character is not valid in an identifier 23 | if (bx == 2) { | ^ combo.cpp:23:5: error: extended character is not valid in an identifier 23 | if (bx == 2) { | ^ combo.cpp:23:8: error: extended character is not valid in an identifier 23 | if (bx == 2) { | ^ combo.cpp:23:11: error: extended character is not valid in an identifier 23 | if (bx == 2) { | ^ combo.cpp:24:2: error: extended character is not valid in an identifier 24 | id = 3; | ^ combo.cpp:24:5: error: extended character is not valid in an identifier 24 | id = 3; | ^ combo.cpp:24:8: error: extended character is not valid in an identifier 24 | id = 3; | ^ combo.cpp:24:11: error: extended character is not valid in an identifier 24 | id = 3; | ^ combo.cpp:24:14: error: extended character is not valid in an identifier 24 | id = 3; | ^ combo.cpp:24:17: error: extended character is not valid in an identifier 24 | id = 3; | ^ combo.cpp:27:2: error: extended character is not valid in an identifier 27 | if (bx == 0) { // BX = 0; AY, AX | ^ combo.cpp:27:5: error: extended character is not valid in an identifier 27 | if (bx == 0) { // BX = 0; AY, AX | ^ combo.cpp:27:8: error: extended character is not valid in an identifier 27 | if (bx == 0) { // BX = 0; AY, AX | ^ combo.cpp:27:11: error: extended character is not valid in an identifier 27 | if (bx == 0) { // BX = 0; AY, AX | ^ combo.cpp:28:2: error: extended character is not valid in an identifier 28 | id = 2; | ^ combo.cpp:28:5: error: extended character is not valid in an identifier 28 | id = 2; | ^ combo.cpp:28:8: error: extended character is not valid in an identifier 28 | id = 2; | ^ combo.cpp:28:11: error: extended character is not valid in an identifier 28 | id = 2; | ^ combo.cpp:28:14: error: extended character is not valid in an identifier 28 | id = 2; | ^ combo.cpp:28:17: error: extended character is not valid in an identifier 28 | id = 2; | ^ combo.cpp:35:2: error: extended character is not valid in an identifier 35 | if (bx == 1) { // XA, XB, XY | ^ combo.cpp:35:5: error: extended character is not valid in an identifier 35 | if (bx == 1) { // XA, XB, XY | ^ combo.cpp:35:8: error: extended character is not valid in an identifier 35 | if (bx == 1) { // XA, XB, XY | ^ combo.cpp:35:11: error: extended character is not valid in an identifier 35 | if (bx == 1) { // XA, XB, XY | ^ combo.cpp:36:2: error: extended character is not valid in an identifier 36 | id = 0; | ^ combo.cpp:36:5: error: extended character is not valid in an identifier 36 | id = 0; | ^ combo.cpp:36:8: error: extended character is not valid in an identifier 36 | id = 0; | ^ combo.cpp:36:11: error: extended character is not valid in an identifier 36 | id = 0; | ^ combo.cpp:36:14: error: extended character is not valid in an identifier 36 | id = 0; | ^ combo.cpp:36:17: error: extended character is not valid in an identifier 36 | id = 0; | ^ combo.cpp:42:2: error: extended character is not valid in an identifier 42 | else { // YA, YB, YX | ^ combo.cpp:42:5: error: extended character is not valid in an identifier 42 | else { // YA, YB, YX | ^ combo.cpp:42:8: error: extended character is not valid in an identifier 42 | else { // YA, YB, YX | ^ combo.cpp:42:11: error: extended character is not valid in an identifier 42 | else { // YA, YB, YX | ^ combo.cpp:43:2: error: extended character is not valid in an identifier 43 | id = 1; | ^ combo.cpp:43:5: error: extended character is not valid in an identifier 43 | id = 1; | ^ combo.cpp:43:8: error: extended character is not valid in an identifier 43 | id = 1; | ^ combo.cpp:43:11: error: extended character is not valid in an identifier 43 | id = 1; | ^ combo.cpp:43:14: error: extended character is not valid in an identifier 43 | id = 1; | ^ combo.cpp:43:17: error: extended character is not valid in an identifier 43 | id = 1; | ^ combo.cpp:63:2: error: extended character is not valid in an identifier 63 | if (n==N-1) break; | ^ combo.cpp:63:5: error: extended character is not valid in an identifier 63 | if (n==N-1) break; | ^ combo.cpp:63:8: error: extended character is not valid in an identifier 63 | if (n==N-1) break; | ^ combo.cpp:63:11: error: extended character is not valid in an identifier 63 | if (n==N-1) break; | ^ combo.cpp: In function 'std::string guess_sequence(int)': combo.cpp:13:2: error: '\U000000a0' was not declared in this scope 13 | id = 2; | ^ combo.cpp:14:4: error: expected ';' before '\U000000a0' 14 | res = "AB"; | ^~ | ; combo.cpp:16:2: error: '\U000000a0' was not declared in this scope 16 | if (ab == 1) { | ^ combo.cpp:34:5: error: 'else' without a previous 'if' 34 | else if (ab == 0) { | ^~~~ combo.cpp:35:4: error: expected ';' before '\U000000a0' 35 | if (bx == 1) { // XA, XB, XY | ^~ | ; combo.cpp:42:4: error: expected ';' before '\U000000a0' 42 | else { // YA, YB, YX | ^~ | ; combo.cpp:63:4: error: expected ';' before '\U000000a0' 63 | if (n==N-1) break; | ^~ | ; combo.cpp:10:10: warning: unused variable 'per' [-Wunused-variable] 10 | char per; | ^~~ combo.cpp:11:27: warning: unused variable 'bx' [-Wunused-variable] 11 | int ab = press("AB"), bx = press("BX"), id=2; | ^~