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_15411431_26992.cpp: In function 'int main()':
0_0_15411431_26992.cpp:5:18: error: expected ']' before ';' token
 #define MAX 50010;
                  ^
0_0_15411431_26992.cpp:12:8: note: in expansion of macro 'MAX'
  int s[MAX];
        ^
0_0_15411431_26992.cpp:12:11: error: expected primary-expression before ']' token
  int s[MAX];
           ^
0_0_15411431_26992.cpp:5:18: error: expected ']' before ';' token
 #define MAX 50010;
                  ^
0_0_15411431_26992.cpp:14:10: note: in expansion of macro 'MAX'
  int Sum[MAX];
          ^
0_0_15411431_26992.cpp:14:13: error: expected primary-expression before ']' token
  int Sum[MAX];
             ^
0_0_15411431_26992.cpp:19:12: error: 't' was not declared in this scope
  for(i=0;i<t;i++)
            ^
0_0_15411431_26992.cpp:24:16: error: 's' was not declared in this scope
    scanf("%d",&s[j]);
                ^
0_0_15411431_26992.cpp:36:7: error: 's' was not declared in this scope
       s[x]+=y;
       ^
0_0_15411431_26992.cpp:45:6: error: 's' was not declared in this scope
      s[x]-=y;
      ^
0_0_15411431_26992.cpp:54:10: error: 's' was not declared in this scope
     sum+=s[p];
          ^


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-12-04 10:56:17, Gzip enabled