Problem everyonewinstherace
User Hhw48
Submission Time 2023-12-30 17:37:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

everyonewinstherace.cpp: In function ‘int32_t main()’:
everyonewinstherace.cpp:14:29: error: ‘pos’ was not declared in this scope; did you mean ‘pow’?
14 | for(int i=0; i<n; i++)umap[pos[i]]=time[i];
| ^~~
| pow
everyonewinstherace.cpp:16:7: error: ‘pos’ was not declared in this scope; did you mean ‘pow’?
16 | sort(pos,pos+n);
| ^~~
| pow
everyonewinstherace.cpp:20:37: error: ‘velo’ was not declared in this scope
20 | pq.push(pos[i]+((m-umap[pos[i]])*velo[i]));
| ^~~~