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_25814537_23945.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_25814537_23945.cpp:2:1: error: expected unqualified-id before '/=' token
 /==========================================================/
 ^
0_0_25814537_23945.cpp:8:9: error: 'vector' does not name a type
 typedef vector vi;
         ^
0_0_25814537_23945.cpp:9:9: error: 'pair' does not name a type
 typedef pair pii;
         ^
0_0_25814537_23945.cpp:10:9: error: 'pair' does not name a type
 typedef pair pll;
         ^
0_0_25814537_23945.cpp:11:9: error: 'vector' does not name a type
 typedef vector vii;
         ^
0_0_25814537_23945.cpp:13:34: error: 'acos' was not declared in this scope
 const double PI=(double)acos(-1.0);
                                  ^
0_0_25814537_23945.cpp: In function 'int irand(int, int)':
0_0_25814537_23945.cpp:26:23: error: 'rand' was not declared in this scope
 return (((double)rand())/(RAND_MAX+1.0)) * (hi-lo+1) + lo;
                       ^
0_0_25814537_23945.cpp:26:27: error: 'RAND_MAX' was not declared in this scope
 return (((double)rand())/(RAND_MAX+1.0)) * (hi-lo+1) + lo;
                           ^
0_0_25814537_23945.cpp: At global scope:
0_0_25814537_23945.cpp:29:1: error: 'string' does not name a type
 string toString(ll x) {
 ^
0_0_25814537_23945.cpp:35:13: error: 'string' was not declared in this scope
 ll toNumber(string S) {
             ^
0_0_25814537_23945.cpp:35:23: error: expected ',' or ';' before '{' token
 ll toNumber(string S) {
                       ^
0_0_25814537_23945.cpp:45:1: error: expected unqualified-id before '/=' token
 /==========================================================/
 ^
0_0_25814537_23945.cpp:51:36: error: 'pdd' has not been declared
 double findTimeTurun(int a, int b, pdd pos, pdd v){
                                    ^
0_0_25814537_23945.cpp:51:45: error: 'pdd' has not been declared
 double findTimeTurun(int a, int b, pdd pos, pdd v){
                                             ^
0_0_25814537_23945.cpp: In function 'double findTimeTurun(int, int, int, int)':
0_0_25814537_23945.cpp:14:12: error: request for member 'first' in 'pos', which is of non-class type 'int'
 #define fi first
            ^
0_0_25814537_23945.cpp:55:15: note: in expansion of macro 'fi'
 double sx=pos.fi + v.fitb; double sy=pos.se + v.setb + gtbtb/(double)2.0;
               ^
0_0_25814537_23945.cpp:55:22: error: request for member 'fitb' in 'v', which is of non-class type 'int'
 double sx=pos.fi + v.fitb; double sy=pos.se + v.setb + gtbtb/(double)2.0;
                      ^
0_0_25814537_23945.cpp:15:12: error: request for member 'second' in 'pos', which is of non-class type 'int'
 #define se second
            ^
0_0_25814537_23945.cpp:55:42: note: in expansion of macro 'se'
 double sx=pos.fi + v.fitb; double sy=pos.se + v.setb + gtbtb/(double)2.0;
                                          ^
0_0_25814537_23945.cpp:55:49: error: request for member 'setb' in 'v', which is of non-class type 'int'
 double sx=pos.fi + v.fitb; double sy=pos.se + v.setb + gtbtb/(double)2.0;
                                                 ^
0_0_25814537_23945.cpp:55:56: error: 'gtbtb' was not declared in this scope
 double sx=pos.fi + v.fitb; double sy=pos.se + v.setb + gtbtb/(double)2.0;
                                                        ^
0_0_25814537_23945.cpp: In function 'int solve(int, int, int, int)':
0_0_25814537_23945.cpp:67:1: error: 'pdd' was not declared in this scope
 pdd pos=mp((double)x,(double)y);
 ^
0_0_25814537_23945.cpp:68:5: error: expected ';' before 'v'
 pdd v=mp((double)0.0,(double)0.0);
     ^
0_0_25814537_23945.cpp:69:51: error: 'atan2' was not declared in this scope
 const double ang=(double)atan2((double)b,(double)a);
                                                   ^
0_0_25814537_23945.cpp:73:29: error: 'pos' was not declared in this scope
 double ta=findTimeTurun(a,b,pos,v);
                             ^
0_0_25814537_23945.cpp:73:33: error: 'v' was not declared in this scope
 double ta=findTimeTurun(a,b,pos,v);
                                 ^
0_0_25814537_23945.cpp:74:34: error: 'gtata' was not declared in this scope
 pos.fi+=v.fita; pos.se+=v.seta + gtata/(double)2.0;
                                  ^
0_0_25814537_23945.cpp:76:36: error: 'fabs' was not declared in this scope
 double angV=(double)atan2(fabs(v.fi),fabs(v.se));
                                    ^
0_0_25814537_23945.cpp:79:48: error: unable to find numeric literal operator 'operator""ang2'
 double angRes=(double)PI/(double)2.0 - (double)2.0ang2 - angV; double V=(double)hypot(v.fi,v.se); v=mp(Vcos(angRes),Vsin(angRes)); //debug // printf(" << %lf %lf => %lf %lf => %lf\n",pos.fi,pos.se,v.fi,v.se,ta); //pos and v done if(pos.fi<-EPS)res++; //find time if(v.se >EPS){ ta=-v.se/g; pos=mp(pos.fi+v.fita, pos.se+v.seta+gta*ta/(double)2.0);
                                                ^
0_0_25814537_23945.cpp:79:48: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
0_0_25814537_23945.cpp:79:96: error: 'hypot' was not declared in this scope
 double angRes=(double)PI/(double)2.0 - (double)2.0ang2 - angV; double V=(double)hypot(v.fi,v.se); v=mp(Vcos(angRes),Vsin(angRes)); //debug // printf(" << %lf %lf => %lf %lf => %lf\n",pos.fi,pos.se,v.fi,v.se,ta); //pos and v done if(pos.fi<-EPS)res++; //find time if(v.se >EPS){ ta=-v.se/g; pos=mp(pos.fi+v.fita, pos.se+v.seta+gta*ta/(double)2.0);
                                                                                                ^
0_0_25814537_23945.cpp:79:115: error: 'Vcos' was not declared in this scope
 double angRes=(double)PI/(double)2.0 - (double)2.0ang2 - angV; double V=(double)hypot(v.fi,v.se); v=mp(Vcos(angRes),Vsin(angRes)); //debug // printf(" << %lf %lf => %lf %lf => %lf\n",pos.fi,pos.se,v.fi,v.se,ta); //pos and v done if(pos.fi<-EPS)res++; //find time if(v.se >EPS){ ta=-v.se/g; pos=mp(pos.fi+v.fita, pos.se+v.seta+gta*ta/(double)2.0);
                                                                                                                   ^
0_0_25814537_23945.cpp:79:128: error: 'Vsin' was not declared in this scope
 double angRes=(double)PI/(double)2.0 - (double)2.0ang2 - angV; double V=(double)hypot(v.fi,v.se); v=mp(Vcos(angRes),Vsin(angRes)); //debug // printf(" << %lf %lf => %lf %lf => %lf\n",pos.fi,pos.se,v.fi,v.se,ta); //pos and v done if(pos.fi<-EPS)res++; //find time if(v.se >EPS){ ta=-v.se/g; pos=mp(pos.fi+v.fita, pos.se+v.seta+gta*ta/(double)2.0);
                                                                                                                                ^
0_0_25814537_23945.cpp:79:129: error: 'make_pair' was not declared in this scope
 double angRes=(double)PI/(double)2.0 - (double)2.0ang2 - angV; double V=(double)hypot(v.fi,v.se); v=mp(Vcos(angRes),Vsin(angRes)); //debug // printf(" << %lf %lf => %lf %lf => %lf\n",pos.fi,pos.se,v.fi,v.se,ta); //pos and v done if(pos.fi<-EPS)res++; //find time if(v.se >EPS){ ta=-v.se/g; pos=mp(pos.fi+v.fita, pos.se+v.seta+gta*ta/(double)2.0);
                                                                                                                                 ^
0_0_25814537_23945.cpp:85:4: error: 'pos' was not declared in this scope
 if(pos.fi>EPS)break;
    ^
0_0_25814537_23945.cpp:85:15: error: break statement not within loop or switch
 if(pos.fi>EPS)break;
               ^
0_0_25814537_23945.cpp: At global scope:
0_0_25814537_23945.cpp:87:1: error: expected unqualified-id before 'return'
 return res;
 ^
0_0_25814537_23945.cpp:88:1: error: expected declaration before '}' token
 }
 ^


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-06-29 10:13:21, Gzip enabled