/ 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:63: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]
   63 |    for (int i = 0; i < range.size(); i ++ )
      |                    ~~^~~~~~~~~~~~~~
foo.cc:4:11: warning: unused variable 'second' [-Wunused-variable]
    4 | #define y second
      |           ^~~~~~
foo.cc:59:19: note: in expansion of macro 'y'
   59 |   int x = q[i].x, y = q[i].y, w = q[i].w;
      |                   ^
foo.cc:69:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL' {aka 'long long int'} [-Wformat=]
   69 |  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. 2ms 384.0 KiB
#2 Wrong Answer Read 41, expect 22. 3ms 384.0 KiB
#3 Wrong Answer Read 2097, expect 836. 2ms 384.0 KiB
#4 Wrong Answer Read 2461, expect 1939. 2ms 384.0 KiB
#5 Wrong Answer Read 683648485, expect 571613184. 2ms 512.0 KiB
#6 Wrong Answer Read 2068803999, expect 59587931768. 2ms 384.0 KiB
#7 Wrong Answer Read -708623312, expect 4527469509965. 4ms 512.0 KiB
#8 Wrong Answer Read -1090256896, expect 40000000000000000. 2ms 384.0 KiB
#9 Wrong Answer Read -714849396, expect 280404523784716. 6ms 512.0 KiB
#10 Wrong Answer Read -1901150411, expect 275007804316281. 3ms 512.0 KiB

信息

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