/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:10:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int (*)[505]' [-Wformat=]
    scanf("%d", a + i + j);
                ~~~~~~~~~^
foo.cc:17:36: error: expected ';' before ']' token
     second = first, first = a[i][j]];
                                    ^
foo.cc:25:1: error: expected '}' at end of input
 }
 ^
foo.cc:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
  ~~~~~^~~~~~~~~~
foo.cc:10:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%d", a + i + j);
    ~~~~~^~~~~~~~~~~~~~~~~

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)

信息

递交者
类型
自测
题目
P1809 三国游戏
语言
C++
递交时间
2020-06-27 15:47:21
评测时间
2020-06-27 15:47:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes