/in/foo.cc: In function 'bool pd(int (*)[500], int, int, int, int)':
/in/foo.cc:20:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(i+1< n && j+1< m && a[i+1][j+1]>a=[i][j]) return false;//东南
^
/in/foo.cc: In lambda function:
/in/foo.cc:20:42: error: expected '{' before '[' token
if(i+1< n && j+1< m && a[i+1][j+1]>a=[i][j]) return false;//东南
^
/in/foo.cc: In function 'bool pd(int (*)[500], int, int, int, int)':
/in/foo.cc:20:42: error: no match for 'operator[]' (operand types are 'pd(int (*)[500], int, int, int, int)::<lambda()>' and 'int')
/in/foo.cc:21:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(i+1< n && j-1>=0 && a[i+1][j-1]>a=[i][j]) return false;//西南
^
/in/foo.cc: In lambda function:
/in/foo.cc:21:42: error: expected '{' before '[' token
if(i+1< n && j-1>=0 && a[i+1][j-1]>a=[i][j]) return false;//西南
^
/in/foo.cc: In function 'bool pd(int (*)[500], int, int, int, int)':
/in/foo.cc:21:42: error: no match for 'operator[]' (operand types are 'pd(int (*)[500], int, int, int, int)::<lambda()>' and 'int')
/in/foo.cc:22:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(i-1>=0 && j-1>=0 && a[i-1][j-1]>a=[i][j]) return false;//西北
^
/in/foo.cc: In lambda function:
/in/foo.cc:22:42: error: expected '{' before '[' token
if(i-1>=0 && j-1>=0 && a[i-1][j-1]>a=[i][j]) return false;//西北
^
/in/foo.cc: In function 'bool pd(int (*)[500], int, int, int, int)':
/in/foo.cc:22:42: error: no match for 'operator[]' (operand types are 'pd(int (*)[500], int, int, int, int)::<lambda()>' and 'int')
/in/foo.cc:23:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(i-1>=0 && j+1< m && a[i-1][j+1]>a=[i][j]) return false;//东北
^
/in/foo.cc: In lambda function:
/in/foo.cc:23:42: error: expected '{' before '[' token
if(i-1>=0 && j+1< m && a[i-1][j+1]>a=[i][j]) return false;//东北
^
/in/foo.cc: In function 'bool pd(int (*)[500], int, int, int, int)':
/in/foo.cc:23:42: error: no match for 'operator[]' (operand types are 'pd(int (*)[500], int, int, int, int)::<lambda()>' and 'int')