museum.cpp: In function 'void dfs(int, int)':
museum.cpp:70:71: error: no matching function for call to 'ckmin(int&, long long int)'
70 | ckmin(dp[0][u][i+j], dp[0][u][i] + 2LL*c + dp[0][v][j]);
| ^
museum.cpp:45:11: note: candidate: 'template<class T> bool ckmin(T&, const T&)'
45 | tcT> bool ckmin(T&a, const T&b) {
| ^~~~~
museum.cpp:45:11: note: template argument deduction/substitution failed:
museum.cpp:70:71: note: deduced conflicting types for parameter 'const T' ('int' and 'long long int')
70 | ckmin(dp[0][u][i+j], dp[0][u][i] + 2LL*c + dp[0][v][j]);
| ^
museum.cpp:71:71: error: no matching function for call to 'ckmin(int&, long long int)'
71 | ckmin(dp[1][u][i+j], dp[0][u][i] + dp[1][v][j] + 1LL*c);
| ^
museum.cpp:45:11: note: candidate: 'template<class T> bool ckmin(T&, const T&)'
45 | tcT> bool ckmin(T&a, const T&b) {
| ^~~~~
museum.cpp:45:11: note: template argument deduction/substitution failed:
museum.cpp:71:71: note: deduced conflicting types for parameter 'const T' ('int' and 'long long int')
71 | ckmin(dp[1][u][i+j], dp[0][u][i] + dp[1][v][j] + 1LL*c);
| ^
museum.cpp:72:71: error: no matching function for call to 'ckmin(int&, long long int)'
72 | ckmin(dp[1][u][i+j], dp[1][u][i] + 2LL*c + dp[0][v][j]);
| ^
museum.cpp:45:11: note: candidate: 'template<class T> bool ckmin(T&, const T&)'
45 | tcT> bool ckmin(T&a, const T&b) {
| ^~~~~
museum.cpp:45:11: note: template argument deduction/substitution failed:
museum.cpp:72:71: note: deduced conflicting types for parameter 'const T' ('int' and 'long long int')
72 | ckmin(dp[1][u][i+j], dp[1][u][i] + 2LL*c + dp[0][v][j]);
| ^
museum.cpp: In function 'void setIO(std::string)':
museum.cpp:40:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | freopen((NAME + ".inp").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
museum.cpp:41:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | freopen((NAME + ".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~