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_14167760_19999.cpp:5:13: error: expected initializer before 'l'
 long long t l,n,k,sl,sr,t;
             ^
0_0_14167760_19999.cpp: In function 'void init()':
0_0_14167760_19999.cpp:17:2: error: 'sl' was not declared in this scope
  sl = 0; sr = 0; ans = 0;
  ^
0_0_14167760_19999.cpp:17:10: error: 'sr' was not declared in this scope
  sl = 0; sr = 0; ans = 0;
          ^
0_0_14167760_19999.cpp: In function 'int main()':
0_0_14167760_19999.cpp:28:7: error: 't' was not declared in this scope
  cin>>t;
       ^
0_0_14167760_19999.cpp:31:8: error: 'l' was not declared in this scope
   cin>>l>>n>>k;
        ^
0_0_14167760_19999.cpp:31:11: error: 'n' was not declared in this scope
   cin>>l>>n>>k;
           ^
0_0_14167760_19999.cpp:31:14: error: 'k' was not declared in this scope
   cin>>l>>n>>k;
              ^
0_0_14167760_19999.cpp:41:24: error: 'sl' was not declared in this scope
      for(long long j = sl+1;j<=sl+a[w[i]];j++) dl[j] = x[w[i]];
                        ^
0_0_14167760_19999.cpp:42:6: error: 'sl' was not declared in this scope
      sl+=a[w[i]];
      ^
0_0_14167760_19999.cpp:46:24: error: 'sr' was not declared in this scope
      for(long long j = sr+1;j<=sr+a[w[i]];j++) dr[j] = l-x[w[i]];
                        ^
0_0_14167760_19999.cpp:47:6: error: 'sr' was not declared in this scope
      sr+=a[w[i]];
      ^
0_0_14167760_19999.cpp:53:8: error: 'sr' was not declared in this scope
    dpr[sr-i+1] = dr[sr-i+1];
        ^
0_0_14167760_19999.cpp:58:26: error: 'sl' was not declared in this scope
   for(long long i=k+1;i<=sl;i++)
                          ^
0_0_14167760_19999.cpp:60:19: error: 'sr' was not declared in this scope
   for(long long i=sr-k;i>=1;i--)
                   ^
0_0_14167760_19999.cpp:63:14: error: 'sl' was not declared in this scope
   ans = (dpl[sl] + dpr[1])<<1;
              ^
0_0_14167760_19999.cpp:65:27: error: 'sr' was not declared in this scope
   long long mx = min(k,sl+sr);
                           ^


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-25 15:37:51, Gzip enabled