F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_37846127_13852.cpp: In function 'void dfs(long long int, long long int)':
0_0_37846127_13852.cpp:61:9: error: 'LL' was not declared in this scope
  vector<LL> s(n + 1);
         ^
0_0_37846127_13852.cpp:61:11: error: template argument 1 is invalid
  vector<LL> s(n + 1);
           ^
0_0_37846127_13852.cpp:61:11: error: template argument 2 is invalid
0_0_37846127_13852.cpp:61:14: error: invalid type in declaration before '(' token
  vector<LL> s(n + 1);
              ^
0_0_37846127_13852.cpp:62:5: error: expected ';' before 'l'
  LL l = -1, r = 0;
     ^
0_0_37846127_13852.cpp:63:5: error: expected ';' before 'sl'
  LL sl = 0, sr = 0;
     ^
0_0_37846127_13852.cpp:64:5: error: invalid types 'int[int]' for array subscript
  s[0]=0;
     ^
0_0_37846127_13852.cpp:68:6: error: expected ';' before 'w'
   LL w = son[i].fi;//we
      ^
0_0_37846127_13852.cpp:69:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   if (w == vals[0]) r = i + 1;
                  ^
0_0_37846127_13852.cpp:69:21: error: 'r' was not declared in this scope
   if (w == vals[0]) r = i + 1;
                     ^
0_0_37846127_13852.cpp:70:8: error: 'sr' was not declared in this scope
   else sr += dp[y][1];
        ^
0_0_37846127_13852.cpp:71:10: error: invalid types 'int[long long int]' for array subscript
   s[i + 1] = s[i] + min(dp[y][0], dp[y][1]);
          ^
0_0_37846127_13852.cpp:71:17: error: invalid types 'int[long long int]' for array subscript
   s[i + 1] = s[i] + min(dp[y][0], dp[y][1]);
                 ^
0_0_37846127_13852.cpp:76:6: error: expected ';' before 'val'
   LL val = vals[i];
      ^
0_0_37846127_13852.cpp:77:10: error: 'l' was not declared in this scope
   while (l!=n-1 && son[l+1].fi<val) {
          ^
0_0_37846127_13852.cpp:77:32: error: 'val' was not declared in this scope
   while (l!=n-1 && son[l+1].fi<val) {
                                ^
0_0_37846127_13852.cpp:80:4: error: 'sl' was not declared in this scope
    sl += dp[y][0];
    ^
0_0_37846127_13852.cpp:82:10: error: 'r' was not declared in this scope
   while (r!=n && son[r].fi<=val) {
          ^
0_0_37846127_13852.cpp:82:29: error: 'val' was not declared in this scope
   while (r!=n && son[r].fi<=val) {
                             ^
0_0_37846127_13852.cpp:84:4: error: 'sr' was not declared in this scope
    sr -= dp[y][1];
    ^
0_0_37846127_13852.cpp:87:6: error: expected ';' before 'sc'
   LL sc = s[r] - s[l + 1];
      ^
0_0_37846127_13852.cpp:88:7: error: 'val' was not declared in this scope
   if (val <= pre[x]) dp[x][0] = min(dp[x][0], sl + sc + sr + cal(x, val));
       ^
0_0_37846127_13852.cpp:88:47: error: 'sl' was not declared in this scope
   if (val <= pre[x]) dp[x][0] = min(dp[x][0], sl + sc + sr + cal(x, val));
                                               ^
0_0_37846127_13852.cpp:88:52: error: 'sc' was not declared in this scope
   if (val <= pre[x]) dp[x][0] = min(dp[x][0], sl + sc + sr + cal(x, val));
                                                    ^
0_0_37846127_13852.cpp:88:57: error: 'sr' was not declared in this scope
   if (val <= pre[x]) dp[x][0] = min(dp[x][0], sl + sc + sr + cal(x, val));
                                                         ^
0_0_37846127_13852.cpp:89:7: error: 'val' was not declared in this scope
   if (val >= pre[x]) dp[x][1] = min(dp[x][1], sl + sc + sr + cal(x, val));
       ^
0_0_37846127_13852.cpp:89:47: error: 'sl' was not declared in this scope
   if (val >= pre[x]) dp[x][1] = min(dp[x][1], sl + sc + sr + cal(x, val));
                                               ^
0_0_37846127_13852.cpp:89:52: error: 'sc' was not declared in this scope
   if (val >= pre[x]) dp[x][1] = min(dp[x][1], sl + sc + sr + cal(x, val));
                                                    ^
0_0_37846127_13852.cpp:89:57: error: 'sr' was not declared in this scope
   if (val >= pre[x]) dp[x][1] = min(dp[x][1], sl + sc + sr + cal(x, val));
                                                         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 11:09:51, Gzip enabled