Problem waveway4
User Hatrix
Submission Time 2026-11-06 14:35:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waveway4.cpp: In function ‘int main()’:
waveway4.cpp:10:6: error: ‘a’ was not declared in this scope
10 | if(a[mid] == x) {
| ^
waveway4.cpp:10:16: error: ‘x’ was not declared in this scope
10 | if(a[mid] == x) {
| ^
waveway4.cpp:14:6: error: expected ‘(’ before ‘a’
14 | if a[mid] < x) l = mid + 1;
| ^
| (
waveway4.cpp:15:3: error: ‘else’ without a previous ‘if’
15 | else r = mid - 1;
| ^~~~