Problem | logs |
---|---|
User | YeoBL20 |
Submission Time | 2023-05-01 10:44:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
logs.cpp:5:10: error: array bound is not an integer constant before ‘]’ token
5 | int arr[n];
| ^
logs.cpp: In function ‘bool check(int)’:
logs.cpp:9:11: error: ‘arr’ was not declared in this scope
9 | cnt += (arr[i] + x - 1) / x - 1;
| ^~~
logs.cpp: In function ‘int main()’:
logs.cpp:16:37: error: ‘arr’ was not declared in this scope
16 | for (int i = 0; i < n; i++) cin >> arr[i], hi = max(hi, arr[i] + 1);
| ^~~