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_29577447_16769.cpp: In function 'int main()':
0_0_29577447_16769.cpp:5:13: error: expected primary-expression before '=' token
 #define maxn=1000000000;
             ^
0_0_29577447_16769.cpp:47:18: note: in expansion of macro 'maxn'
         memset(a,maxn,sizeof(a));
                  ^
0_0_29577447_16769.cpp:47:22: error: expected primary-expression before ',' token
         memset(a,maxn,sizeof(a));
                      ^
0_0_29577447_16769.cpp:5:13: error: expected primary-expression before '=' token
 #define maxn=1000000000;
             ^
0_0_29577447_16769.cpp:67:27: note: in expansion of macro 'maxn'
         else if(d[s[s4]]==maxn) cout<<"-1"<<endl;
                           ^
0_0_29577447_16769.cpp:5:24: error: expected ')' before ';' token
 #define maxn=1000000000;
                        ^
0_0_29577447_16769.cpp:67:27: note: in expansion of macro 'maxn'
         else if(d[s[s4]]==maxn) cout<<"-1"<<endl;
                           ^
0_0_29577447_16769.cpp:67:31: error: expected primary-expression before ')' token
         else if(d[s[s4]]==maxn) cout<<"-1"<<endl;
                               ^
0_0_29577447_16769.cpp:68:9: error: 'else' without a previous 'if'
         else cout<<d[2]<<endl;
         ^


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-05 07:04:02, Gzip enabled