Problem pigeonhole
User GYEE26
Submission Time 2024-11-02 20:32:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:7:21: error: expected identifier before numeric constant
7 | int holes[h] = [0,0,0];
| ^
pigeonhole.cpp:7:22: error: expected ‘]’ before ‘,’ token
7 | int holes[h] = [0,0,0];
| ^
| ]
pigeonhole.cpp: In lambda function:
pigeonhole.cpp:7:22: error: expected ‘{’ before ‘,’ token
pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:7:22: error: array must be initialized with a brace-enclosed initializer
pigeonhole.cpp:7:23: error: expected unqualified-id before numeric constant
7 | int holes[h] = [0,0,0];
| ^
pigeonhole.cpp:24:33: error: ‘holes_id’ was not declared in this scope; did you mean ‘hole_id’?
24 | hole_sizes.insert(holes[holes_id]);
| ^~~~~~~~
| hole_