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_36184104_14452.cpp:1:1: error: 'include' does not name a type
 include<cstdio>
 ^
0_0_36184104_14452.cpp: In function 'void init(int)':
0_0_36184104_14452.cpp:9:10: error: 'd' was not declared in this scope
          d[i] = m[i] = 0;
          ^
0_0_36184104_14452.cpp:9:17: error: 'm' was not declared in this scope
          d[i] = m[i] = 0;
                 ^
0_0_36184104_14452.cpp: In function 'int main()':
0_0_36184104_14452.cpp:14:31: error: 'scanf' was not declared in this scope
      while(~scanf("%d%d",&M,&n) && n+M)
                               ^
0_0_36184104_14452.cpp:18:26: error: 'a' was not declared in this scope
              scanf("%d",&a[i]);
                          ^
0_0_36184104_14452.cpp:24:18: error: 'd' was not declared in this scope
                  d[j] = Max(d[j-1]+a[j],m[j-1]+a[j]);
                  ^
0_0_36184104_14452.cpp:24:36: error: 'a' was not declared in this scope
                  d[j] = Max(d[j-1]+a[j],m[j-1]+a[j]);
                                    ^
0_0_36184104_14452.cpp:4:20: note: in definition of macro 'Max'
  #define Max(a,b) (a)>(b)?(a):(b)
                    ^
0_0_36184104_14452.cpp:24:41: error: 'm' was not declared in this scope
                  d[j] = Max(d[j-1]+a[j],m[j-1]+a[j]);
                                         ^
0_0_36184104_14452.cpp:4:24: note: in definition of macro 'Max'
  #define Max(a,b) (a)>(b)?(a):(b)
                        ^
0_0_36184104_14452.cpp:29:27: error: 'printf' was not declared in this scope
          printf("%d\n",ans);
                           ^


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-20 04:34:29, Gzip enabled