Problem everyonewinstherace
User PlayVoltz
Submission Time 2023-12-31 22:14:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

everyonewinstherace.cpp: In function ‘int32_t main()’:
everyonewinstherace.cpp:11:37: error: expected ‘;’ before ‘for’
11 | for (int i=0; i<n; ++i)cin>>temp[i]
| ^
| ;
12 | for (int i=0; i<n; ++i)cin>>a, vect[i]*=m-a;
| ~~~
everyonewinstherace.cpp:12:16: error: ‘i’ was not declared in this scope
12 | for (int i=0; i<n; ++i)cin>>a, vect[i]*=m-a;
| ^