combo.cpp:8:9: warning: multi-character character constant [-Wmultichar]
8 | c = ' X ' , d = ' Y ' ;
| ^~~~~
combo.cpp:8:21: warning: multi-character character constant [-Wmultichar]
8 | c = ' X ' , d = ' Y ' ;
| ^~~~~
combo.cpp:9:26: warning: multi-character character constant [-Wmultichar]
9 | press( " A " )? (a = ' A ' , b = ' B ' ) : (a = ' B ' , b = ' A ' );
| ^~~~~
combo.cpp:9:38: warning: multi-character character constant [-Wmultichar]
9 | press( " A " )? (a = ' A ' , b = ' B ' ) : (a = ' B ' , b = ' A ' );
| ^~~~~
combo.cpp:9:53: warning: multi-character character constant [-Wmultichar]
9 | press( " A " )? (a = ' A ' , b = ' B ' ) : (a = ' B ' , b = ' A ' );
| ^~~~~
combo.cpp:9:65: warning: multi-character character constant [-Wmultichar]
9 | press( " A " )? (a = ' A ' , b = ' B ' ) : (a = ' B ' , b = ' A ' );
| ^~~~~
combo.cpp:11:9: warning: multi-character character constant [-Wmultichar]
11 | c = ' A ' , d = ' B ' ;
| ^~~~~
combo.cpp:11:21: warning: multi-character character constant [-Wmultichar]
11 | c = ' A ' , d = ' B ' ;
| ^~~~~
combo.cpp:12:26: warning: multi-character character constant [-Wmultichar]
12 | press( " X " )? (a = ' X ' , b = ' Y ' ) : (a = ' Y ' , b = ' X ' );
| ^~~~~
combo.cpp:12:38: warning: multi-character character constant [-Wmultichar]
12 | press( " X " )? (a = ' X ' , b = ' Y ' ) : (a = ' Y ' , b = ' X ' );
| ^~~~~
combo.cpp:12:53: warning: multi-character character constant [-Wmultichar]
12 | press( " X " )? (a = ' X ' , b = ' Y ' ) : (a = ' Y ' , b = ' X ' );
| ^~~~~
combo.cpp:12:65: warning: multi-character character constant [-Wmultichar]
12 | press( " X " )? (a = ' X ' , b = ' Y ' ) : (a = ' Y ' , b = ' X ' );
| ^~~~~
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:7:8: error: 'press' was not declared in this scope
7 | if (press( " AB " ) > 0 ) {
| ^~~~~
combo.cpp:8:9: warning: overflow in conversion from 'int' to 'char' changes value from '2119712' to '' '' [-Woverflow]
8 | c = ' X ' , d = ' Y ' ;
| ^~~~~
combo.cpp:8:21: warning: overflow in conversion from 'int' to 'char' changes value from '2119968' to '' '' [-Woverflow]
8 | c = ' X ' , d = ' Y ' ;
| ^~~~~
combo.cpp:9:26: warning: overflow in conversion from 'int' to 'char' changes value from '2113824' to '' '' [-Woverflow]
9 | press( " A " )? (a = ' A ' , b = ' B ' ) : (a = ' B ' , b = ' A ' );
| ^~~~~
combo.cpp:9:38: warning: overflow in conversion from 'int' to 'char' changes value from '2114080' to '' '' [-Woverflow]
9 | press( " A " )? (a = ' A ' , b = ' B ' ) : (a = ' B ' , b = ' A ' );
| ^~~~~
combo.cpp:9:53: warning: overflow in conversion from 'int' to 'char' changes value from '2114080' to '' '' [-Woverflow]
9 | press( " A " )? (a = ' A ' , b = ' B ' ) : (a = ' B ' , b = ' A ' );
| ^~~~~
combo.cpp:9:65: warning: overflow in conversion from 'int' to 'char' changes value from '2113824' to '' '' [-Woverflow]
9 | press( " A " )? (a = ' A ' , b = ' B ' ) : (a = ' B ' , b = ' A ' );
| ^~~~~
combo.cpp:11:9: warning: overflow in conversion from 'int' to 'char' changes value from '2113824' to '' '' [-Woverflow]
11 | c = ' A ' , d = ' B ' ;
| ^~~~~
combo.cpp:11:21: warning: overflow in conversion from 'int' to 'char' changes value from '2114080' to '' '' [-Woverflow]
11 | c = ' A ' , d = ' B ' ;
| ^~~~~
combo.cpp:12:26: warning: overflow in conversion from 'int' to 'char' changes value from '2119712' to '' '' [-Woverflow]
12 | press( " X " )? (a = ' X ' , b = ' Y ' ) : (a = ' Y ' , b = ' X ' );
| ^~~~~
combo.cpp:12:38: warning: overflow in conversion from 'int' to 'char' changes value from '2119968' to '' '' [-Woverflow]
12 | press( " X " )? (a = ' X ' , b = ' Y ' ) : (a = ' Y ' , b = ' X ' );
| ^~~~~
combo.cpp:12:53: warning: overflow in conversion from 'int' to 'char' changes value from '2119968' to '' '' [-Woverflow]
12 | press( " X " )? (a = ' X ' , b = ' Y ' ) : (a = ' Y ' , b = ' X ' );
| ^~~~~
combo.cpp:12:65: warning: overflow in conversion from 'int' to 'char' changes value from '2119712' to '' '' [-Woverflow]
12 | press( " X " )? (a = ' X ' , b = ' Y ' ) : (a = ' Y ' , b = ' X ' );
| ^~~~~
combo.cpp:18:15: error: 'press' was not declared in this scope
18 | int bk = press(p);
| ^~~~~
combo.cpp:20:15: error: expected primary-expression before '=' token
20 | if (bk = = i + 1 ) ans += c;
| ^
combo.cpp:23:7: error: 'press' was not declared in this scope
23 | if (press(ans + b) == n) ans += b;
| ^~~~~