/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int get(std::vector<std::pair<int, int> >)':
foo.cc:27:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |  for (int i = 0; i < range.size(); i ++ )
      |                  ~~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:62:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   62 |    for (int j = 0; j < range.size(); j ++ )
      |                    ~~^~~~~~~~~~~~~~
foo.cc:4:11: warning: unused variable 'second' [-Wunused-variable]
    4 | #define y second
      |           ^~~~~~
foo.cc:58:19: note: in expansion of macro 'y'
   58 |   int x = q[i].x, y = q[i].y, w = q[i].w;
      |                   ^
foo.cc:68:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL' {aka 'long long int'} [-Wformat=]
   68 |  printf("%d\n", res);
      |          ~^     ~~~
      |           |     |
      |           int   LL {aka long long int}
      |          %lld
foo.cc:44:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   44 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:47:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   47 |   scanf("%d%d", &q[i].x, &q[i].y);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 11, expect 10. 4ms 384.0 KiB
#2 Wrong Answer Read 61, expect 22. 5ms 384.0 KiB
#3 Wrong Answer Read 2146, expect 836. 3ms 384.0 KiB
#4 Wrong Answer Read 2473, expect 1939. 2ms 384.0 KiB
#5 Wrong Answer Read 696411712, expect 571613184. 2ms 384.0 KiB
#6 Wrong Answer Read 2068803999, expect 59587931768. 4ms 512.0 KiB
#7 Wrong Answer Read -708623312, expect 4527469509965. 4ms 384.0 KiB
#8 Wrong Answer Read -1090256896, expect 40000000000000000. 4ms 384.0 KiB
#9 Wrong Answer Read -1656530964, expect 280404523784716. 5ms 512.0 KiB
#10 Wrong Answer Read 326701429, expect 275007804316281. 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1056 图形面积
语言
C++
递交时间
2022-07-08 10:43:52
评测时间
2022-07-08 10:43:52
评测机
分数
0
总耗时
43ms
峰值内存
512.0 KiB