foo.cc: In function 'bool bfs()':
foo.cc:44:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for( register int i = 0 ; i < linker[ now ].size() ; i++ )
| ~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'long long int dinic(int, long long int)':
foo.cc:54:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | for( register int i = cur[ now ] ; i < linker[ now ].size() ; i++ )
| ~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'bool check(long long int)':
foo.cc:77:14: error: reference to 'hash' is ambiguous
77 | addedge( s , hash[i][j] , x - a[i][j] ) , tot += x - a[i][j];
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:78:23: error: reference to 'hash' is ambiguous
78 | if( i != 1 ) addedge( hash[i][j] , hash[i - 1][j] , inf );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:78:36: error: reference to 'hash' is ambiguous
78 | if( i != 1 ) addedge( hash[i][j] , hash[i - 1][j] , inf );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:79:23: error: reference to 'hash' is ambiguous
79 | if( i != n ) addedge( hash[i][j] , hash[i + 1][j] , inf );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:79:36: error: reference to 'hash' is ambiguous
79 | if( i != n ) addedge( hash[i][j] , hash[i + 1][j] , inf );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:80:23: error: reference to 'hash' is ambiguous
80 | if( j != 1 ) addedge( hash[i][j] , hash[i][j - 1] , inf );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:80:36: error: reference to 'hash' is ambiguous
80 | if( j != 1 ) addedge( hash[i][j] , hash[i][j - 1] , inf );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:81:23: error: reference to 'hash' is ambiguous
81 | if( j != m ) addedge( hash[i][j] , hash[i][j + 1] , inf );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:81:36: error: reference to 'hash' is ambiguous
81 | if( j != m ) addedge( hash[i][j] , hash[i][j + 1] , inf );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:83:15: error: reference to 'hash' is ambiguous
83 | else addedge( hash[i][j] , t , x - a[i][j] );
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:84:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
84 | while( bfs() ) while( temp = dinic( s , inf ) ) ans += temp;
| ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:100:1: error: reference to 'hash' is ambiguous
100 | hash[i][j] = ++num;
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:23:33: note: 'int hash [42][42]'
23 | int n , m , a[40 + 2][40 + 2] , hash[40 + 2][40 + 2] , r;
| ^~~~
foo.cc:90:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
90 | scanf( "%d" , &r );
| ~~~~~^~~~~~~~~~~~~
foo.cc:93:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
93 | scanf( "%d %d" , &n , &m );
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:96:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
96 | scanf( "%d" , &a[i][j] );
| ~~~~~^~~~~~~~~~~~~~~~~~~