Problem | squidzofrenzic |
---|---|
User | justin271828 |
Submission Time | 2023-06-11 18:16:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
squidzofrenzic.cpp: In function ‘int isvalid(int, int, int, int)’:
squidzofrenzic.cpp:8:28: error: invalid types ‘int[int]’ for array subscript
8 | if (partialarraysum + b[i] > A) {
| ^
squidzofrenzic.cpp:19:26: error: invalid types ‘int[int]’ for array subscript
19 | partialarraysum += b[i];
| ^
squidzofrenzic.cpp: In function ‘int main()’:
squidzofrenzic.cpp:42:21: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
42 | if (isvalid(N, M, B, a)) {
| ^
| |
| int*
squidzofrenzic.cpp:4:31: note: initializing argument 3 of ‘int isvalid(int, int, int, int)’
4 | int isvalid(int n, int m, int b, int A) {
| ~~~~^
squidzofrenzic.cpp:44:26: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
44 | if (not isvalid(N, M, B,