0_0_33904639_29868.cpp: In function 'double calc(double, double)':
0_0_33904639_29868.cpp:27:8: error: redefinition of 'double calc(double, double)'
double calc(double x,double y)
^
0_0_33904639_29868.cpp:15:8: note: 'double calc(double, double)' previously defined here
double calc(double x,double y)
^
0_0_33904639_29868.cpp: At global scope:
0_0_33904639_29868.cpp:74:50: error: 'T' was not declared in this scope
double nowx=ansx+(rand()*2-RAND_MAX)*T;
^
0_0_33904639_29868.cpp:75:50: error: 'T' was not declared in this scope
double nowy=ansy+(rand()*2-RAND_MAX)*T;
^
0_0_33904639_29868.cpp:77:13: error: expected unqualified-id before 'if'
if(nowz==210000000.0){T*=0.99;continue;}
^
0_0_33904639_29868.cpp:79:13: error: expected unqualified-id before 'if'
if(delta<0)ansx=nowx,ansy=nowy,ansz=nowz;
^
0_0_33904639_29868.cpp:80:13: error: expected unqualified-id before 'else'
else if(exp(delta/T)*RAND_MAX<rand())ansx=nowx,ansy=nowy,ansz=nowz;
^
0_0_33904639_29868.cpp:81:13: error: 'T' does not name a type
T*=0.99;
^
0_0_33904639_29868.cpp:82:9: error: expected declaration before '}' token
}
^
|