Problem | pigeonhole |
---|---|
User | Johnnie |
Submission Time | 2023-11-08 11:19:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:22:21: error: array must be initialized with a brace-enclosed initializer
22 | int copy[holes] = numOfPidgeons;
| ^~~~~~~~~~~~~
pigeonhole.cpp:25:24: error: expected ‘;’ before ‘cout’
25 | max = copy[holes - 1]
| ^
| ;
26 | cout << max << endl;
| ~~~~