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_26907389_24860.cpp: In function 'int main()':
0_0_26907389_24860.cpp:3:21: error: expected ']' before ';' token
 #define maxium 11000;
                     ^
0_0_26907389_24860.cpp:10:10: note: in expansion of macro 'maxium'
  int num[maxium];
          ^
0_0_26907389_24860.cpp:10:16: error: expected primary-expression before ']' token
  int num[maxium];
                ^
0_0_26907389_24860.cpp:3:21: error: expected ']' before ';' token
 #define maxium 11000;
                     ^
0_0_26907389_24860.cpp:11:9: note: in expansion of macro 'maxium'
  int dp[maxium][maxium];
         ^
0_0_26907389_24860.cpp:11:15: error: expected primary-expression before ']' token
  int dp[maxium][maxium];
               ^
0_0_26907389_24860.cpp:11:23: error: expected primary-expression before ']' token
  int dp[maxium][maxium];
                       ^
0_0_26907389_24860.cpp:21:16: error: 'num' was not declared in this scope
    scanf("%d",&num[i]);
                ^
0_0_26907389_24860.cpp:22:4: error: 'dp' was not declared in this scope
    dp[i][i]=num[i];
    ^
0_0_26907389_24860.cpp:28:5: error: 'dp' was not declared in this scope
     dp[i][j]=dp[i][j-1]+num[i][j];
     ^
0_0_26907389_24860.cpp:28:25: error: 'num' was not declared in this scope
     dp[i][j]=dp[i][j-1]+num[i][j];
                         ^
0_0_26907389_24860.cpp:38:8: error: 'dp' was not declared in this scope
     if(dp[i][j]>max)
        ^
0_0_26907389_24860.cpp:50:27: error: 'num' was not declared in this scope
   printf("%d %d %d\n",max,num[posi],[posj]);
                           ^
0_0_26907389_24860.cpp: In lambda function:
0_0_26907389_24860.cpp:50:43: error: expected '{' before ')' token
   printf("%d %d %d\n",max,num[posi],[posj]);
                                           ^


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-06 02:44:43, Gzip enabled