Problem pigeonhole
User hwy
Submission Time 2023-06-17 11:53:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pigeonhole.cpp: In function ‘void update(int, int, int, int, int)’:
pigeonhole.cpp:10:16: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
10 | return 0;
| ^
pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:36:25: error: ‘x’ was not declared in this scope
36 | update(1, 0, (n-1), (x%h), 1);
| ^
pigeonhole.cpp:39:25: error: ‘x’ was not declared in this scope
39 | update(1, 0, (n-1), (x%h), -1);
| ^