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_33073720_29524.cpp: In function 'int main()':
0_0_33073720_29524.cpp:55:6: error: 'n' was not declared in this scope
   rr(n , k) ;
      ^
0_0_33073720_29524.cpp:17:36: note: in definition of macro 'rr'
 #define rr(x , y)  scanf("%d%d" , &x , &y)
                                    ^
0_0_33073720_29524.cpp:55:10: error: 'k' was not declared in this scope
   rr(n , k) ;
          ^
0_0_33073720_29524.cpp:17:41: note: in definition of macro 'rr'
 #define rr(x , y)  scanf("%d%d" , &x , &y)
                                         ^
0_0_33073720_29524.cpp:56:21: error: 'a' was not declared in this scope
   rep(i , 1 , n)  r(a[i]) ;
                     ^
0_0_33073720_29524.cpp:16:28: note: in definition of macro 'r'
 #define r(x)  scanf("%d", &x)
                            ^
0_0_33073720_29524.cpp:57:3: error: 'sum' was not declared in this scope
   sum[0] = 0 ;
   ^
0_0_33073720_29524.cpp:58:41: error: 'a' was not declared in this scope
   rep(i , 1 , n)  sum[i] = sum[i - 1] + a[i] ;
                                         ^
0_0_33073720_29524.cpp:64:13: error: 'ok' was not declared in this scope
    if(ok(mid))  ans = mid , r = mid - 1 ;
             ^


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-12-02 12:03:08, Gzip enabled