/in/foo.cc: In function 'int SA(int*, int*, int)':
/in/foo.cc:60:15: error: expected ')' before numeric constant
if(rand()1<exp(-vectorcompute(v,p)-vectorcompute(v,p_var)/temperature)*100)
^
/in/foo.cc:68:14: error: expected ')' before '!' token
if(rand()!<exp((w_ori-w_var)/temperature)*100)
^
/in/foo.cc:75:6: error: 'i' was not declared in this scope
for(i=0;i<NUM;i++)
^
/in/foo.cc:37:6: warning: unused variable 'vdif' [-Wunused-variable]
int vdif=0,wdif=0;
^~~~
/in/foo.cc:37:13: warning: unused variable 'wdif' [-Wunused-variable]
int vdif=0,wdif=0;
^~~~