0_0_25814553_8452.cpp:6:9: error: invalid use of template-name 'std::vector' without an argument list
typedef vector vi;
^
0_0_25814553_8452.cpp:7:9: error: invalid use of template-name 'std::pair' without an argument list
typedef pair pii;
^
0_0_25814553_8452.cpp:8:9: error: invalid use of template-name 'std::pair' without an argument list
typedef pair pll;
^
0_0_25814553_8452.cpp:9:9: error: invalid use of template-name 'std::vector' without an argument list
typedef vector vii;
^
0_0_25814553_8452.cpp:43:1: error: expected unqualified-id before '/=' token
/==========================================================/
^
0_0_25814553_8452.cpp:49:36: error: 'pdd' has not been declared
double findTimeTurun(int a, int b, pdd pos, pdd v){
^
0_0_25814553_8452.cpp:49:45: error: 'pdd' has not been declared
double findTimeTurun(int a, int b, pdd pos, pdd v){
^
0_0_25814553_8452.cpp: In function 'double findTimeTurun(int, int, int, int)':
0_0_25814553_8452.cpp:12:12: error: request for member 'first' in 'pos', which is of non-class type 'int'
#define fi first
^
0_0_25814553_8452.cpp:53: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_25814553_8452.cpp:53: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_25814553_8452.cpp:13:12: error: request for member 'second' in 'pos', which is of non-class type 'int'
#define se second
^
0_0_25814553_8452.cpp:53: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_25814553_8452.cpp:53: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_25814553_8452.cpp:53: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_25814553_8452.cpp: In function 'int solve(int, int, int, int)':
0_0_25814553_8452.cpp:65:1: error: 'pdd' was not declared in this scope
pdd pos=mp((double)x,(double)y);
^
0_0_25814553_8452.cpp:66:5: error: expected ';' before 'v'
pdd v=mp((double)0.0,(double)0.0);
^
0_0_25814553_8452.cpp:71:29: error: 'pos' was not declared in this scope
double ta=findTimeTurun(a,b,pos,v);
^
0_0_25814553_8452.cpp:71:33: error: 'v' was not declared in this scope
double ta=findTimeTurun(a,b,pos,v);
^
0_0_25814553_8452.cpp:72:34: error: 'gtata' was not declared in this scope
pos.fi+=v.fita; pos.se+=v.seta + gtata/(double)2.0;
^
0_0_25814553_8452.cpp:77: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_25814553_8452.cpp:77:48: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
0_0_25814553_8452.cpp:77: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_25814553_8452.cpp:77: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_25814553_8452.cpp:83:4: error: 'pos' was not declared in this scope
if(pos.fi>EPS)break;
^
0_0_25814553_8452.cpp:83:15: error: break statement not within loop or switch
if(pos.fi>EPS)break;
^
0_0_25814553_8452.cpp: At global scope:
0_0_25814553_8452.cpp:85:1: error: expected unqualified-id before 'return'
return res;
^
0_0_25814553_8452.cpp:86:1: error: expected declaration before '}' token
}
^
|