Problem squidzofrenzic
User mathemactics
Submission Time 2023-11-17 15:46:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squidzofrenzic.cpp:4:13: error: expected initializer before ‘long’
4 | #define int long long
| ^~~~
squidzofrenzic.cpp:7:1: note: in expansion of macro ‘int’
7 | int A[100010];
| ^~~
squidzofrenzic.cpp: In function ‘bool isPossible(long long int)’:
squidzofrenzic.cpp:14:13: error: ‘A’ was not declared in this scope
14 | if (A[i] > x) return false;
| ^
squidzofrenzic.cpp:15:19: error: ‘A’ was not declared in this scope
15 | if (cur + A[i] <= x){
| ^
squidzofrenzic.cpp:22:19: error: ‘m’ was not declared in this scope
22 | if (people <= m) return true;
| ^
squidzofrenzic.cpp: In function ‘int32_t main()’:
squidzofrenzic.cpp:27:17: error: ‘m’ was not declared in this scope
27 | cin >> n >> m;
| ^
squidzofrenzic.cpp:32:16: error: ‘A’ was not declared in this