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_22622683_20783.cpp: In function 'int main()':
0_0_22622683_20783.cpp:13:12: error: conflicting declaration 'int max [A]'
   int max[A];
            ^
0_0_22622683_20783.cpp:9:10: note: previous declaration as 'int max'
   int a, max, start = 1, end = 1, c = 1;
          ^
0_0_22622683_20783.cpp:15:8: error: invalid types 'int[int]' for array subscript
   max[0] = num[0];
        ^
0_0_22622683_20783.cpp:18:9: error: invalid types 'int[int]' for array subscript
    max[i] = max[i - 1] + num[i];
         ^
0_0_22622683_20783.cpp:18:22: error: invalid types 'int[int]' for array subscript
    max[i] = max[i - 1] + num[i];
                      ^
0_0_22622683_20783.cpp:19:13: error: invalid types 'int[int]' for array subscript
    if (max[i] > max[i - 1]) {
             ^
0_0_22622683_20783.cpp:19:26: error: invalid types 'int[int]' for array subscript
    if (max[i] > max[i - 1]) {
                          ^
0_0_22622683_20783.cpp:20:16: error: invalid types 'int[int]' for array subscript
     max = max[i];
                ^
0_0_22622683_20783.cpp:24:20: error: invalid types 'int[int]' for array subscript
     max = max[i - 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-07-05 10:09:02, Gzip enabled