maxcomp.cpp: In function 'void reload(int, int)':
maxcomp.cpp:23:22: warning: overflow in conversion from 'long long int' to 'int' changes value from '1000000000000000000' to '-1486618624' [-Woverflow]
23 | pn[i][j]=INF, px[i][j]=-INF;
| ^~~
maxcomp.cpp:23:36: warning: overflow in conversion from 'long long int' to 'int' changes value from '-1000000000000000000' to '1486618624' [-Woverflow]
23 | pn[i][j]=INF, px[i][j]=-INF;
| ^~~~
maxcomp.cpp: In function 'int main()':
maxcomp.cpp:55:21: error: no matching function for call to 'umin(long long int&, int&)'
55 | umin(val, pn[i-1][j]), umax(val2, px[i-1][j]);
| ~~~~^~~~~~~~~~~~~~~~~
maxcomp.cpp:13:23: note: candidate: 'template<class T> bool umin(T&, T)'
13 | template<class T>bool umin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
| ^~~~
maxcomp.cpp:13:23: note: template argument deduction/substitution failed:
maxcomp.cpp:55:21: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
55 | umin(val, pn[i-1][j]), umax(val2, px[i-1][j]);
| ~~~~^~~~~~~~~~~~~~~~~
maxcomp.cpp:55:44: error: no matching function for call to 'umax(long long int&, int&)'
55 | umin(val, pn[i-1][j]), umax(val2, px[i-1][j]);
| ~~~~^~~~~~~~~~~~~~~~~~
maxcomp.cpp:14:23: note: candidate: 'template<class T> bool umax(T&, T)'
14 | template<class T>bool umax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
| ^~~~
maxcomp.cpp:14:23: note: template argument deduction/substitution failed:
maxcomp.cpp:55:44: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
55 | umin(val, pn[i-1][j]), umax(val2, px[i-1][j]);
| ~~~~^~~~~~~~~~~~~~~~~~
maxcomp.cpp:57:21: error: no matching function for call to 'umin(long long int&, int&)'
57 | umin(val, pn[i][j-1]), umax(val2, px[i][j-1]);
| ~~~~^~~~~~~~~~~~~~~~~
maxcomp.cpp:13:23: note: candidate: 'template<class T> bool umin(T&, T)'
13 | template<class T>bool umin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
| ^~~~
maxcomp.cpp:13:23: note: template argument deduction/substitution failed:
maxcomp.cpp:57:21: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
57 | umin(val, pn[i][j-1]), umax(val2, px[i][j-1]);
| ~~~~^~~~~~~~~~~~~~~~~
maxcomp.cpp:57:44: error: no matching function for call to 'umax(long long int&, int&)'
57 | umin(val, pn[i][j-1]), umax(val2, px[i][j-1]);
| ~~~~^~~~~~~~~~~~~~~~~~
maxcomp.cpp:14:23: note: candidate: 'template<class T> bool umax(T&, T)'
14 | template<class T>bool umax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
| ^~~~
maxcomp.cpp:14:23: note: template argument deduction/substitution failed:
maxcomp.cpp:57:44: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
57 | umin(val, pn[i][j-1]), umax(val2, px[i][j-1]);
| ~~~~^~~~~~~~~~~~~~~~~~
maxcomp.cpp:68:21: error: no matching function for call to 'umin(long long int&, int&)'
68 | umin(val, pn[i-1][j]), umax(val2, px[i-1][j]);
| ~~~~^~~~~~~~~~~~~~~~~
maxcomp.cpp:13:23: note: candidate: 'template<class T> bool umin(T&, T)'
13 | template<class T>bool umin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
| ^~~~
maxcomp.cpp:13:23: note: template argument deduction/substitution failed:
maxcomp.cpp:68:21: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
68 | umin(val, pn[i-1][j]), umax(val2, px[i-1][j]);
| ~~~~^~~~~~~~~~~~~~~~~
maxcomp.cpp:68:44: error: no matching function for call to 'umax(long long int&, int&)'
68 | umin(val, pn[i-1][j]), umax(val2, px[i-1][j]);
| ~~~~^~~~~~~~~~~~~~~~~~
maxcomp.cpp:14:23: note: candidate: 'template<class T> bool umax(T&, T)'
14 | template<class T>bool umax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
| ^~~~
maxcomp.cpp:14:23: note: template argument deduction/substitution failed:
maxcomp.cpp:68:44: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
68 | umin(val, pn[i-1][j]), umax(val2, px[i-1][j]);
| ~~~~^~~~~~~~~~~~~~~~~~
maxcomp.cpp:70:21: error: no matching function for call to 'umin(long long int&, int&)'
70 | umin(val, pn[i][j-1]), umax(val2, px[i][j-1]);
| ~~~~^~~~~~~~~~~~~~~~~
maxcomp.cpp:13:23: note: candidate: 'template<class T> bool umin(T&, T)'
13 | template<class T>bool umin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
| ^~~~
maxcomp.cpp:13:23: note: template argument deduction/substitution failed:
maxcomp.cpp:70:21: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
70 | umin(val, pn[i][j-1]), umax(val2, px[i][j-1]);
| ~~~~^~~~~~~~~~~~~~~~~
maxcomp.cpp:70:44: error: no matching function for call to 'umax(long long int&, int&)'
70 | umin(val, pn[i][j-1]), umax(val2, px[i][j-1]);
| ~~~~^~~~~~~~~~~~~~~~~~
maxcomp.cpp:14:23: note: candidate: 'template<class T> bool umax(T&, T)'
14 | template<class T>bool umax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
| ^~~~
maxcomp.cpp:14:23: note: template argument deduction/substitution failed:
maxcomp.cpp:70:44: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
70 | umin(val, pn[i][j-1]), umax(val2, px[i][j-1]);
| ~~~~^~~~~~~~~~~~~~~~~~
maxcomp.cpp:42:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
maxcomp.cpp:48:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | scanf("%d", &v[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~