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_32669806_12888.cpp: In function 'int main()':
0_0_32669806_12888.cpp:2:29: error: 'm' was not declared in this scope
     while (~scanf("%d %d", &m, &n)) {
                             ^
0_0_32669806_12888.cpp:2:33: error: 'n' was not declared in this scope
     while (~scanf("%d %d", &m, &n)) {
                                 ^
0_0_32669806_12888.cpp:2:34: error: 'scanf' was not declared in this scope
     while (~scanf("%d %d", &m, &n)) {
                                  ^
0_0_32669806_12888.cpp:4:25: error: 'arr' was not declared in this scope
             scanf("%d", arr+i);
                         ^
0_0_32669806_12888.cpp:6:16: error: 'dp1' was not declared in this scope
         memset(dp1, 0, sizeof(dp1));
                ^
0_0_32669806_12888.cpp:6:35: error: 'memset' was not declared in this scope
         memset(dp1, 0, sizeof(dp1));
                                   ^
0_0_32669806_12888.cpp:7:16: error: 'dp2' was not declared in this scope
         memset(dp2, 0, sizeof(dp2));
                ^
0_0_32669806_12888.cpp:11:19: error: 'NINF' was not declared in this scope
             Max = NINF;
                   ^
0_0_32669806_12888.cpp:14:41: error: 'arr' was not declared in this scope
                     dp2[j] = dp1[j-1] + arr[j];
                                         ^
0_0_32669806_12888.cpp:16:52: error: 'max' was not declared in this scope
                     dp2[j] = max(dp2[j-1], dp1[j-1]) + arr[j];
                                                    ^
0_0_32669806_12888.cpp:16:56: error: 'arr' was not declared in this scope
                     dp2[j] = max(dp2[j-1], dp1[j-1]) + arr[j];
                                                        ^
0_0_32669806_12888.cpp:24:27: error: 'printf' was not declared in this scope
         printf("%d\n", Max);
                           ^


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-17 18:32:36, Gzip enabled