Problem houselighting
User yuanbin
Submission Time 2026-11-27 14:29:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

houselighting.cpp: In function ‘int main()’:
houselighting.cpp:57:5: error: expected ‘,’ or ‘;’ before ‘return’
57 | return true;
| ^~~~~~
houselighting.cpp: At global scope:
houselighting.cpp:63:3: error: expected unqualified-id before ‘while’
63 | while (low <= high) {
| ^~~~~
houselighting.cpp:73:3: error: ‘cout’ does not name a type
73 | cout << answer << "\n";
| ^~~~
houselighting.cpp:74:3: error: expected unqualified-id before ‘return’
74 | return 0;
| ^~~~~~
houselighting.cpp:75:1: error: expected declaration before ‘}’ token
75 | }
| ^