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_39507526_13698.cpp: In function 'bool check(int)':
0_0_39507526_13698.cpp:48:32: error: 'j' was not declared in this scope
   48 |                         if(!st[j - v + 1] && s[i] - u >= mid)
      |                                ^
0_0_39507526_13698.cpp: In function 'int main()':
0_0_39507526_13698.cpp:63:16: error: expected ';' before 'int'
   63 |         init(N)
      |                ^
      |                ;
   64 |         int T = 1;
      |         ~~~     
0_0_39507526_13698.cpp:65:16: error: 'T' was not declared in this scope
   65 |         cin >> T;
      |                ^
0_0_39507526_13698.cpp:70:57: error: 'a' was not declared in this scope
   70 |                 for(int i = 1; i <= n; i ++)scanf("%d",&a[i]),s[i] = s[i - 1] + a[i];
      |                                                         ^
0_0_39507526_13698.cpp:73:22: error: 'a' was not declared in this scope
   73 |                   if(a[i] < 0)l += a[i];
      |                      ^


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-09-20 14:59:18, Gzip enabled