Problem everyonewinstherace
User Kannan
Submission Time 2023-12-30 15:51:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

everyonewinstherace.cpp: In function ‘int maximum_arr(std::vector<long long int>, int)’:
everyonewinstherace.cpp:7:14: error: ‘arr’ was not declared in this scope
7 | maxI = max(arr[i], maxI);
| ^~~
everyonewinstherace.cpp: In function ‘int main()’:
everyonewinstherace.cpp:15:14: error: ‘x’ was not declared in this scope
15 | long long v[x], t[x], x[x];
| ^
everyonewinstherace.cpp:19:10: error: ‘v’ was not declared in this scope
19 | cin >> v[i];
| ^
everyonewinstherace.cpp:25:10: error: ‘t’ was not declared in this scope
25 | cin >> t[i];
| ^
everyonewinstherace.cpp:28:23: error: ‘t’ was not declared in this scope
28 | txv[i] = make_tuple(t, x, v);
| ^
everyonewinstherace.cpp:28:29: error: ‘v’ was not declared in this scope
28 | txv[i] = make_tuple(t, x, v);
|