0_0_29955274_9974.cpp: In function 'int main()':
0_0_29955274_9974.cpp:12:24: error: expected ',' or ';' before 'ans'
double sum = 0 ans = 0;
^
0_0_29955274_9974.cpp:15:13: error: 'ans' was not declared in this scope
ans = max(ans, 1.0 * (sum + s[i]) / v[i]);
^
0_0_29955274_9974.cpp:17:26: error: 'ans' was not declared in this scope
printf("%.9lf\n",ans);
^
|