/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void R(int&)':
/in/foo.cc:12:10: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
   v = (v + (v << 2) << 1) + (ch^'0');
        ~~^~~~~~~~~~
/in/foo.cc: In constructor 'node::node(int, int, int, int)':
/in/foo.cc:19:14: warning: 'node::c' will be initialized after [-Wreorder]
  int to, pa, c, w;
              ^
/in/foo.cc:19:10: warning:   'int node::pa' [-Wreorder]
  int to, pa, c, w;
          ^~
/in/foo.cc:20:2: warning:   when initialized here [-Wreorder]
  node (int to, int c, int pa, int w): to(to), c(c), pa(pa), w(w) {}
  ^~~~
/in/foo.cc: In function 'std::pair<long long int, long long int> feiyongliu(int, int, int)':
/in/foo.cc:47:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int i = 0 ; i < q[x].size(); ++i) {
                     ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:79:6: warning: unused variable 'x' [-Wunused-variable]
  int x, y, c, w;
      ^
/in/foo.cc:79:9: warning: unused variable 'y' [-Wunused-variable]
  int x, y, c, w;
         ^
/in/foo.cc:79:12: warning: unused variable 'c' [-Wunused-variable]
  int x, y, c, w;
            ^
/in/foo.cc:79:15: warning: unused variable 'w' [-Wunused-variable]
  int x, y, c, w;
               ^
# 状态 耗时 内存占用
#1 Accepted 3ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 3ms 360.0 KiB
#4 Accepted 2ms 328.0 KiB
#5 Accepted 3ms 456.0 KiB
#6 Accepted 3ms 352.0 KiB
#7 Accepted 3ms 384.0 KiB
#8 Accepted 3ms 256.0 KiB
#9 Accepted 3ms 500.0 KiB
#10 Accepted 3ms 348.0 KiB

信息

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