Problem | squidzofrenzic |
---|---|
User | Aaryan1379 |
Submission Time | 2023-03-22 22:43:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
squidzofrenzic.cpp: In function ‘bool check(int)’:
squidzofrenzic.cpp:3:24: error: ‘N’ was not declared in this scope
3 | for(int i = 0; i < N; i++){
| ^
squidzofrenzic.cpp:4:12: error: ‘A’ was not declared in this scope
4 | if(A[i] > mid) return 0;
| ^
squidzofrenzic.cpp:6:18: error: ‘A’ was not declared in this scope
6 | if(sum + A[i] > mid){
| ^
squidzofrenzic.cpp:11:16: error: ‘A’ was not declared in this scope
11 | sum += A[i];
| ^
squidzofrenzic.cpp:14:21: error: ‘M’ was not declared in this scope
14 | return (r + 1 > M ? 0 : 1);
| ^
squidzofrenzic.cpp: In function ‘void solve()’:
squidzofrenzic.cpp:18:5: error: ‘cin’ was not declared in this scope
18 | cin >> N >> M;
| ^~~
squidzofrenzic.cpp:18:12: error: ‘N’ was not