/ Vijos /

记录详情

Time Exceeded

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.25 MiB
#2 Accepted 4ms 1.066 MiB
#3 Accepted 39ms 2.246 MiB
#4 Accepted 25ms 1.262 MiB
#5 Accepted 25ms 1.027 MiB
#6 Accepted 2ms 792.0 KiB
#7 Accepted 187ms 3.496 MiB
#8 Accepted 400ms 4.887 MiB
#9 Accepted 630ms 6.293 MiB
#10 Time Exceeded ≥1067ms ≥7.312 MiB

信息

递交者
类型
递交
题目
P1168 公路巡逻
语言
C++
递交时间
2024-07-05 11:26:51
评测时间
2024-07-05 11:26:51
评测机
分数
90
总耗时
≥2388ms
峰值内存
≥7.312 MiB