Problem combo
User mertbbm
Submission Time 2023-05-07 10:59:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

combo.cpp:5:13: error: variable or field ‘press’ declared void
5 | void press(p);
| ^
combo.cpp:5:12: error: ‘p’ was not declared in this scope
5 | void press(p);
| ^
combo.cpp: In function ‘std::string guess_sequence(int)’:
combo.cpp:73:16: error: ‘n’ was not declared in this scope
73 | for(int x=1;x<n-1;x++){
| ^
combo.cpp:88:6: error: redeclaration of ‘int hold’
88 | int hold=press(ans+"A"+ans+"B");
| ^~~~
combo.cpp:10:6: note: ‘int hold’ previously declared here
10 | int hold= press("AB");
| ^~~~