Problem square_ioi
User dacashew
Submission Time 2023-11-12 13:00:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

square_ioi.cpp: In function ‘long long int findMaxSquare(long long int (*)[1000], long long int)’:
square_ioi.cpp:21:2: error: ‘dp’ was not declared in this scope
21 | dp[n][n];
| ^~
square_ioi.cpp:41:33: error: no matching function for call to ‘min(const long long int&)’
41 | dp[i][j]=min(min(a,min(b,c)))+1;
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from square_ioi.cpp:3:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
198 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: template argument deduction/substitution failed:
square_ioi.cpp:41:33: note: candidate exp