/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'void addNum(std::vector<Num>&, Num&)':
foo.cc:122:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  122 |  for(int i=0;i<v.size();i++) {
      |              ~^~~~~~~~~
foo.cc: In function 'Num& getGoodOne(int, int)':
foo.cc:159:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  159 |  for(int i=0;i<vi.size();i++) {
      |              ~^~~~~~~~~~
foo.cc: In function 'void preCalc()':
foo.cc:214:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  214 |    for(int k=0;k<preBuild.size();k++) {
      |                ~^~~~~~~~~~~~~~~~
foo.cc:215:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Num>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  215 |     for(int k2=k+1;k2<preBuild.size();k2++) {
      |                    ~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:232:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  232 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:240:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  240 |  for(int i=0;i<3;i++) scanf("%d%d", &p[i], &q[i]);
      |                       ~~~~~^~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 1.0 MiB
#2 Time Exceeded ≥1100ms ≥1.0 MiB
#3 Wrong Answer Read 262, expect 178. 598ms 1.125 MiB
#4 Time Exceeded ≥1100ms ≥1.0 MiB
#5 Runtime Error Segmentation fault 2ms 1.0 MiB
#6 Runtime Error Segmentation fault 5ms 1.0 MiB
#7 Runtime Error Segmentation fault 2ms 1.0 MiB
#8 Runtime Error Segmentation fault 3ms 1.125 MiB
#9 Runtime Error Segmentation fault 3ms 1.125 MiB
#10 Runtime Error Segmentation fault 2ms 1.125 MiB

信息

递交者
类型
递交
题目
P1854 火柴游戏
语言
C++
递交时间
2022-07-25 12:04:35
评测时间
2022-07-25 12:04:35
评测机
分数
0
总耗时
2824ms
峰值内存
1.125 MiB