/in/foo.cc:1:0: warning: ignoring #pragma comment [-Wunknown-pragmas]
#pragma comment(linker, "/STACK:1024000000,1024000000")
/in/foo.cc: In function 'bool check(long long int)':
/in/foo.cc:116:10: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
if(!(i+j&1)){
~^~
/in/foo.cc:119:50: warning: overflow in implicit constant conversion [-Woverflow]
if(id[i][j]%m!=1) add(id[i][j],id[i][j]-1,inf);
^
/in/foo.cc:120:50: warning: overflow in implicit constant conversion [-Woverflow]
if(id[i][j]%m!=0) add(id[i][j],id[i][j]+1,inf);
^
/in/foo.cc:121:47: warning: overflow in implicit constant conversion [-Woverflow]
if(id[i][j]>m) add(id[i][j],id[i][j]-m,inf);
^
/in/foo.cc:122:54: warning: overflow in implicit constant conversion [-Woverflow]
if(id[i][j]<=(n-1)*m) add(id[i][j],id[i][j]+m,inf);
^
/in/foo.cc:114:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(re int i=1;i<=n;i++)
^~~
/in/foo.cc:124:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
dinic();
^~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:133:6: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(re int i=1;i<=n;i++)
^~~
/in/foo.cc:139:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(re int i=1;i<=n;i++)
^~~
/in/foo.cc:141:15: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
if(!(i+j&1)) S1+=a[i][j];
~^~
/in/foo.cc:145:50: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
if(wish>=m&&check(wish)) cout<<wish*(n*m>>1+1)-S1<<endl;
~^~