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_32045896_780.cpp:8:16: error: expected initializer before numeric constant
 const int maxn 100000;
                ^
0_0_32045896_780.cpp:9:7: error: 'maxn' was not declared in this scope
 int a[maxn<<1], b[max<<1];
       ^
0_0_32045896_780.cpp:9:24: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
 int a[maxn<<1], b[max<<1];
                        ^
0_0_32045896_780.cpp: In function 'int main()':
0_0_32045896_780.cpp:15:9: error: 'cin' was not declared in this scope
  while (cin>>n)
         ^
0_0_32045896_780.cpp:22:4: error: 'a' was not declared in this scope
    a[i] = w - l;
    ^
0_0_32045896_780.cpp:24:4: error: 'b' was not declared in this scope
    b[i + n] = b[i] = 1;
    ^
0_0_32045896_780.cpp:28:9: error: 'a' was not declared in this scope
    if ((a[i - 1]) >= 0 && (a[i] + a[i - 1]) >= 0)
         ^
0_0_32045896_780.cpp:31:5: error: 'b' was not declared in this scope
     b[i] += b[i - 1];
     ^
0_0_32045896_780.cpp:40:21: error: 'b' was not declared in this scope
    max1 = max(max1, b[i]);
                     ^
0_0_32045896_780.cpp:46:3: error: 'cout' was not declared in this scope
   cout << max1 << endl;
   ^
0_0_32045896_780.cpp:46:19: error: 'endl' was not declared in this scope
   cout << max1 << endl;
                   ^


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-16 23:42:52, Gzip enabled