/ Vijos /

记录详情

Compile Error

foo.cc:11:21: error: expected type-specifier before '{' token
   11 | long long *operator {
      |                     ^
foo.cc: In function 'void Build(int, int, int)':
foo.cc:47:18: error: no match for 'operator[]' (operand types are 'Array' and 'int')
   47 | Build(rt[x],1,M,a[l]);
      |                  ^
foo.cc: In function 'int main()':
foo.cc:108:16: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  108 | scanf("%lld",&b[i][j]);
      |                ^
foo.cc:111:2: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  111 | a[i][j]=b[i][j];
      |  ^
foo.cc:111:10: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  111 | a[i][j]=b[i][j];
      |          ^
foo.cc:112:9: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  112 | if(i<x)a[i][j]-=b[i+1][j];
      |         ^
foo.cc:112:18: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  112 | if(i<x)a[i][j]-=b[i+1][j];
      |                  ^
foo.cc:113:9: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  113 | if(i>x)a[i][j]-=b[i-1][j];
      |         ^
foo.cc:113:18: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  113 | if(i>x)a[i][j]-=b[i-1][j];
      |                  ^
foo.cc:114:9: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  114 | if(j<y)a[i][j]-=b[i][j+1];
      |         ^
foo.cc:114:18: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  114 | if(j<y)a[i][j]-=b[i][j+1];
      |                  ^
foo.cc:115:9: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  115 | if(j>y)a[i][j]-=b[i][j-1];
      |         ^
foo.cc:115:18: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  115 | if(j>y)a[i][j]-=b[i][j-1];
      |                  ^
foo.cc:116:16: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  116 | if(i!=x&&j!=y)a[i][j]+=b[i+(i<x?1:-1)][j+(j<y?1:-1)];
      |                ^
foo.cc:116:25: error: no match for 'operator[]' (operand types are 'Array' and 'int')
  116 | if(i!=x&&j!=y)a[i][j]+=b[i+(i<x?1:-1)][j+(j<y?1:-1)];
      |                         ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1806 魔幻棋盘
语言
C++
递交时间
2023-07-24 15:43:12
评测时间
2023-07-24 15:43:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes