Problem | oranges2 |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-06 15:01:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
oranges2.cpp: In function ‘int main()’:
oranges2.cpp:84:31: error: no matching function for call to ‘precalc(int&, long int [n][n])’
84 | oranges = precalc(i, oranges);
| ^
oranges2.cpp:43:6: note: candidate: ‘template<class auto:22> auto precalc(long int, auto:22)’
43 | auto precalc(ll start, auto oranges){
| ^~~~~~~
oranges2.cpp:43:6: note: template argument deduction/substitution failed:
oranges2.cpp:84:31: note: variable-sized array type ‘long int (*)[n]’ is not a valid template argument
84 | oranges = precalc(i, oranges);
| ^