记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:35:7: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
    if(x=x1;x=x2) break;
       ^
foo.cc:35:14: error: 'x2' was not declared in this scope
    if(x=x1;x=x2) break;
              ^~
foo.cc:35:14: note: suggested alternative: 'x1'
    if(x=x1;x=x2) break;
              ^~
              x1
foo.cc:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d",&M,&N,&K);
  ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:23:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d",&p[i][j]);
    ~~~~~^~~~~~~~~~~~~~~
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
P1128 花生采摘
语言
C++
递交时间
2020-11-12 22:07:44
评测时间
2020-11-12 22:07:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes