/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:48:12: error: conflicting declaration 'int t'
  int N,M,K,t,i,j;
            ^
/in/foo.cc:47:14: note: previous declaration as 'Matrix t'
     Matrix x,t;
              ^
/in/foo.cc:57:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'Matrix*' [-Wformat=]
    scanf("%d",&x);
               ~~^
/in/foo.cc:58:13: error: no match for 'operator[]' (operand types are 'long long int [120]' and 'Matrix')
    A[i].a[j][x]=1,A[i].a[j][j]=0;
             ^
/in/foo.cc:68:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   printf("%d ",x.a[i][1]);
                ~~~~~~~~~^

信息

递交者
类型
自测
题目
P1049 送给圣诞夜的礼品
语言
C++
递交时间
2017-10-28 11:31:50
评测时间
2017-10-28 11:31:50
评测机
分数
0
总耗时
315ms
峰值内存
29.844 MiB