/ Vijos /

记录详情

Accepted

foo.cc: In function ‘void init()’:
foo.cc:5:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
    5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
      |                             ^~~
foo.cc:29:1: note: in expansion of macro ‘for1’
   29 | for1(i,n)
      | ^~~~
foo.cc:5:29: note: remove parentheses
    5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
      |                             ^~~
foo.cc:29:1: note: in expansion of macro ‘for1’
   29 | for1(i,n)
      | ^~~~
foo.cc: In function ‘void input()’:
foo.cc:5:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
    5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
      |                             ^~~
foo.cc:38:1: note: in expansion of macro ‘for1’
   38 | for1(i,m)
      | ^~~~
foo.cc:5:29: note: remove parentheses
    5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
      |                             ^~~
foo.cc:38:1: note: in expansion of macro ‘for1’
   38 | for1(i,m)
      | ^~~~
foo.cc:5:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
    5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
      |                             ^~~
foo.cc:49:1: note: in expansion of macro ‘for1’
   49 | for1(i,n)
      | ^~~~
foo.cc:5:29: note: remove parentheses
    5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
      |                             ^~~
foo.cc:49:1: note: in expansion of macro ‘for1’
   49 | for1(i,n)
      | ^~~~
foo.cc: In function ‘int cal(int, int, int)’:
foo.cc:60:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<Node>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   60 | for(int i=p;i<G[x].size();i++)//G[x][i].st>=st
      |             ~^~~~~~~~~~~~
foo.cc:62:22: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   62 |     if(G[x][i].st==st&&G[x][i].et==et||G[x][i].st!=st&&G[x][i].et<=et)
foo.cc: In function ‘void work()’:
foo.cc:5:29: warning: unnecessary parentheses in declaration of ‘i’ [-Wparentheses]
    5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
      |                             ^~~
foo.cc:83:1: note: in expansion of macro ‘for1’
   83 | for1(i,n-1)
      | ^~~~
foo.cc:5:29: note: remove parentheses
    5 | #define for1(a, n) for (int (a) = 1; (a) <= (n); (a)++)
      |                             ^~~
foo.cc:83:1: note: in expansion of macro ‘for1’
   83 | for1(i,n-1)
      | ^~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 1.066 MiB
#2 Accepted 4ms 1.246 MiB
#3 Accepted 40ms 2.023 MiB
#4 Accepted 24ms 1.262 MiB
#5 Accepted 24ms 1.262 MiB
#6 Accepted 3ms 792.0 KiB
#7 Accepted 176ms 3.492 MiB
#8 Accepted 309ms 4.895 MiB
#9 Accepted 611ms 6.273 MiB
#10 Accepted 974ms 7.496 MiB

信息

递交者
类型
递交
题目
P1168 公路巡逻
语言
C++
递交时间
2024-07-05 11:27:07
评测时间
2024-07-05 11:27:09
评测机
分数
100
总耗时
2173ms
峰值内存
7.496 MiB