/ Vijos /

记录详情

Accepted

/in/foo.cc: In constructor 'node::node(int, int, int, long long int)':
/in/foo.cc:85:15: warning: 'node::w' will be initialized after [-Wreorder]
  int to, rev, w;
               ^
/in/foo.cc:85:10: warning:   'int node::rev' [-Wreorder]
  int to, rev, w;
          ^~~
/in/foo.cc:87:2: warning:   when initialized here [-Wreorder]
  node(int to = 0, int w = 0, int rev = 0, long long c = 0)
  ^~~~
/in/foo.cc: In function 'bool spfa_slf(int, int)':
/in/foo.cc:122:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int p = 0; p < edge[cur].size(); ++p) {
                   ~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:137:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int p = 0; p < edge[i].size(); ++p) {
                   ~~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int dfs(int, int, int)':
/in/foo.cc:150:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int p = 0; p < edge[cur].size(); ++p) {
                  ~~^~~~~~~~~~~~~~~~~~
/in/foo.cc: In instantiation of 'void R(T&) [with T = int]':
/in/foo.cc:100:5:   required from here
/in/foo.cc:35:17: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
   x = ((x << 2) + x << 1) + (c ^ '0');
        ~~~~~~~~~^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 352.0 KiB
#2 Accepted 3ms 328.0 KiB
#3 Accepted 3ms 336.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 3ms 256.0 KiB
#7 Accepted 3ms 344.0 KiB
#8 Accepted 2ms 256.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 1ms 364.0 KiB

信息

递交者
类型
递交
题目
P1891 学姐的逛街计划
语言
C++
递交时间
2017-09-04 20:33:29
评测时间
2017-09-04 20:33:29
评测机
分数
100
总耗时
30ms
峰值内存
384.0 KiB