/ Vijos /

记录详情

Compile Error

foo.cc:8:23: warning: overflow in conversion from 'int' to 'short int' changes value from '177157' to '-19451' [-Woverflow]
    8 | const int BIT = 177147+10;
      |                 ~~~~~~^~~
foo.cc:93:17: error: narrowing conversion of '-19451' from 'short int' to 'long unsigned int' [-Wnarrowing]
   93 | BIG ans,f[2][BIT];
      |                 ^
foo.cc:93:14: error: size '-19451' of array 'f' is negative
   93 | BIG ans,f[2][BIT];
      |              ^~~
foo.cc:94:15: error: narrowing conversion of '-19451' from 'short int' to 'long unsigned int' [-Wnarrowing]
   94 | short v[2][BIT];
      |               ^
foo.cc:94:12: error: size '-19451' of array 'v' is negative
   94 | short v[2][BIT];
      |            ^~~
foo.cc:207:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
  207 | main(){
      |      ^
foo.cc: In member function 'Big Big::operator=(short int)':
foo.cc:64:1: warning: control reaches end of non-void function [-Wreturn-type]
   64 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1110 小胖邮递员
语言
C++
递交时间
2022-02-27 16:09:21
评测时间
2022-02-27 16:09:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes