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_23096693_24235.cpp:6:29: error: expected initializer before 'sum'
 #define ll long long int ll sum[66000];
                             ^
0_0_23096693_24235.cpp:7:1: note: in expansion of macro 'll'
 ll pos;
 ^
0_0_23096693_24235.cpp:7:4: error: 'pos' does not name a type
 ll pos;
    ^
0_0_23096693_24235.cpp:6:29: error: expected initializer before 'sum'
 #define ll long long int ll sum[66000];
                             ^
0_0_23096693_24235.cpp:8:1: note: in expansion of macro 'll'
 ll n;
 ^
0_0_23096693_24235.cpp:8:4: error: 'n' does not name a type
 ll n;
    ^
0_0_23096693_24235.cpp: In function 'int main()':
0_0_23096693_24235.cpp:11:12: error: 'sum' was not declared in this scope
     memset(sum,0,sizeof(sum));
            ^
0_0_23096693_24235.cpp:20:21: error: 'n' was not declared in this scope
         scanf("%d",&n);
                     ^
0_0_23096693_24235.cpp:21:9: error: 'pos' was not declared in this scope
         pos=-1;
         ^


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-23 13:37:10, Gzip enabled