Problem | oranges2 |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-06 15:00:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
oranges2.cpp:43:27: error: declaration of ‘oranges’ as multidimensional array must have bounds for all dimensions except the first
43 | void precalc(ll start, ll oranges[][]){
| ^~~~~~~
oranges2.cpp: In function ‘void precalc(...)’:
oranges2.cpp:45:2: error: ‘oranges’ was not declared in this scope
45 | oranges[start][start] = 0;
| ^~~~~~~
oranges2.cpp:45:10: error: ‘start’ was not declared in this scope
45 | oranges[start][start] = 0;
| ^~~~~
oranges2.cpp: In function ‘int main()’:
oranges2.cpp:83:31: error: incompatible types in assignment of ‘void’ to ‘long int [n][n]’
83 | oranges = precalc(i, oranges);
| ^