hottercolder.cpp: In function 'void guessL()':
hottercolder.cpp:11:10: error: 'mid' was not declared in this scope
11 | return mid;
| ^~~
hottercolder.cpp:11:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
hottercolder.cpp:14:8: error: 'mid' was not declared in this scope
14 | r = mid-1;
| ^~~
hottercolder.cpp:16:8: error: 'mid' was not declared in this scope
16 | l = mid+1;
| ^~~
hottercolder.cpp:20:8: error: 'mid' was not declared in this scope
20 | r = mid;
| ^~~
hottercolder.cpp:22:8: error: 'mid' was not declared in this scope
22 | l = mid+1;
| ^~~
hottercolder.cpp: In function 'void guessR()':
hottercolder.cpp:30:10: error: 'mid' was not declared in this scope
30 | return mid;
| ^~~
hottercolder.cpp:30:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
hottercolder.cpp:33:8: error: 'mid' was not declared in this scope
33 | r = mid-1;
| ^~~
hottercolder.cpp:35:8: error: 'mid' was not declared in this scope
35 | l = mid+1;
| ^~~
hottercolder.cpp:39:8: error: 'mid' was not declared in this scope
39 | r = mid;
| ^~~
hottercolder.cpp:41:8: error: 'mid' was not declared in this scope
41 | l = mid+1;
| ^~~
hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:50:7: warning: unused variable 'mid' [-Wunused-variable]
50 | int mid = (l+r) >> 1;
| ^~~