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_16548953_7589.cpp: In function 'int solve(int*, int, int)':
0_0_16548953_7589.cpp:8:21: error: 'inf' was not declared in this scope
     int left_sum = -inf, sum = 0;
                     ^
0_0_16548953_7589.cpp:10:9: error: 'sum' was not declared in this scope
         sum += a[i];
         ^
0_0_16548953_7589.cpp:11:37: error: 'max' was not declared in this scope
         left_sum = max(left_sum, sum);
                                     ^
0_0_16548953_7589.cpp:13:27: error: 'sum' was not declared in this scope
     int right_sum = -inf; sum = 0;
                           ^
0_0_16548953_7589.cpp:16:39: error: 'max' was not declared in this scope
         right_sum = max(right_sum, sum);
                                       ^
0_0_16548953_7589.cpp:20:31: error: 'max' was not declared in this scope
     return max(max(LEFT, RIGHT), MID);
                               ^
0_0_16548953_7589.cpp:20:37: error: 'max' was not declared in this scope
     return max(max(LEFT, RIGHT), MID);
                                     ^
0_0_16548953_7589.cpp:20:37: error: redeclaration of '<typeprefixerror>max'
0_0_16548953_7589.cpp:20:31: note: previous declaration '<typeprefixerror>max'
     return max(max(LEFT, RIGHT), MID);
                               ^


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-10-23 23:24:33, Gzip enabled