Problem findinggf
User wongyikai
Submission Time 2023-12-27 10:43:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

findinggf.cpp: In function ‘int main()’:
findinggf.cpp:21:14: error: incompatible types in assignment of ‘int’ to ‘ll [(n + 1)]’ {aka ‘long long int [(n + 1)]’}
21 | tim[0][0] = 0;
| ^
findinggf.cpp:31:63: error: invalid conversion from ‘ll*’ {aka ‘long long int*’} to ‘ll’ {aka ‘long long int’} [-fpermissive]
31 | ll temp2 = tim[j-tempp.first.first][k-tempp.first.second];
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| |
| ll* {aka long long int*}
findinggf.cpp:32:51: error: no matching function for call to ‘min(ll [(n + 1)], ll)’
32 | tim[j][k] = min(tim[j][k],temp2+tempp.second);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:19