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_21860830_549.cpp:5:19: error: stray '#' in program
 #define MAXN 5000 #define eps 1e-9
                   ^
0_0_21860830_549.cpp:50:9: note: in expansion of macro 'MAXN'
 point p[MAXN+5];
         ^
0_0_21860830_549.cpp:5:19: error: stray '#' in program
 #define MAXN 5000 #define eps 1e-9
                   ^
0_0_21860830_549.cpp:51:10: note: in expansion of macro 'MAXN'
 double c[MAXN+5];
          ^
0_0_21860830_549.cpp:5:20: error: expected ']' before 'define'
 #define MAXN 5000 #define eps 1e-9
                    ^
0_0_21860830_549.cpp:50:9: note: in expansion of macro 'MAXN'
 point p[MAXN+5];
         ^
0_0_21860830_549.cpp:5:20: error: expected ']' before 'define'
 #define MAXN 5000 #define eps 1e-9
                    ^
0_0_21860830_549.cpp:51:10: note: in expansion of macro 'MAXN'
 double c[MAXN+5];
          ^
0_0_21860830_549.cpp: In function 'int sgn(double)':
0_0_21860830_549.cpp:57:11: error: 'eps' was not declared in this scope
     if (x>eps) return 1;
           ^
0_0_21860830_549.cpp:58:12: error: 'eps' was not declared in this scope
     if (x<-eps) return -1;
            ^
0_0_21860830_549.cpp: In function 'int main()':
0_0_21860830_549.cpp:76:50: error: 'p' was not declared in this scope
         for (int i=0;i<n;i++) scanf("%lf%lf%lf",&p[i].x,&p[i].y,&c[i]);
                                                  ^
0_0_21860830_549.cpp:76:66: error: 'c' was not declared in this scope
         for (int i=0;i<n;i++) scanf("%lf%lf%lf",&p[i].x,&p[i].y,&c[i]);
                                                                  ^
0_0_21860830_549.cpp:77:9: error: 'p' was not declared in this scope
         p[n] = p[0];
         ^
0_0_21860830_549.cpp:115:28: error: 'c' was not declared in this scope
                     now *= c[i];
                            ^


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-07-05 01:00:13, Gzip enabled