/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main(int, char**)':
foo.cc:53:7: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
   53 |    if(max<(b[i-1]+c[i-1])
      |       ^~~
foo.cc:53:26: error: expected ';' before '{' token
   53 |    if(max<(b[i-1]+c[i-1])
      |                          ^
      |                          ;
   54 |             {
      |             ~             
foo.cc:53:10: warning: statement has no effect [-Wunused-value]
   53 |    if(max<(b[i-1]+c[i-1])
      |       ~~~^~~~~~~~~~~~~~~~
foo.cc:57:13: error: expected primary-expression before 'if'
   57 |             if(max>1e15)max = max%p;
      |             ^~
foo.cc:56:14: error: expected ')' before 'if'
   56 |             }
      |              ^
      |              )
   57 |             if(max>1e15)max = max%p;
      |             ~~
foo.cc:53:6: note: to match this '('
   53 |    if(max<(b[i-1]+c[i-1])
      |      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1850 小朋友的数字
语言
C++
递交时间
2022-04-12 21:49:23
评测时间
2022-04-12 21:49:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes