记录详情

Compile Error

/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')

信息

递交者
类型
递交
比赛
泰院2401程序设计基础作业赛第七场
语言
C++
递交时间
2024-12-03 12:06:01
评测时间
2024-12-03 12:06:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes