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_27610101_8960.cpp: In function 'int main()':
0_0_27610101_8960.cpp:27:10: error: 'N' was not declared in this scope
   cin >> N;
          ^
0_0_27610101_8960.cpp: At global scope:
0_0_27610101_8960.cpp:41:3: error: 'maxSum' does not name a type
   maxSum[i] = 0;
   ^
0_0_27610101_8960.cpp:43:3: error: 'maxBegin' does not name a type
   maxBegin[i] = 0;
   ^
0_0_27610101_8960.cpp:45:3: error: 'maxEnd' does not name a type
   maxEnd[i] = 0;
   ^
0_0_27610101_8960.cpp:49:3: error: expected unqualified-id before 'for'
   for (int begin = 0; begin < N; begin++)
   ^
0_0_27610101_8960.cpp:49:31: error: 'N' was not declared in this scope
   for (int begin = 0; begin < N; begin++)
                               ^
0_0_27610101_8960.cpp:49:23: error: parse error in template argument list
   for (int begin = 0; begin < N; begin++)
                       ^
0_0_27610101_8960.cpp:49:23: error: 'begin<<expression error> >' does not name a type
0_0_27610101_8960.cpp:49:34: error: 'begin' does not name a type
   for (int begin = 0; begin < N; begin++)
                                  ^
0_0_27610101_8960.cpp:53:4: error: expected unqualified-id before 'for'
    for (int end = begin; end < N; end++)
    ^
0_0_27610101_8960.cpp:53:32: error: 'N' was not declared in this scope
    for (int end = begin; end < N; end++)
                                ^
0_0_27610101_8960.cpp:53:26: error: parse error in template argument list
    for (int end = begin; end < N; end++)
                          ^
0_0_27610101_8960.cpp:53:26: error: 'end<<expression error> >' does not name a type
0_0_27610101_8960.cpp:53:35: error: 'end' does not name a type
    for (int end = begin; end < N; end++)
                                   ^
0_0_27610101_8960.cpp:57:5: error: expected unqualified-id before 'if'
     if (tempSum>maxSum[i]){
     ^
0_0_27610101_8960.cpp:67:4: error: expected declaration before '}' token
    }
    ^


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 21:39:07, Gzip enabled