Problem hotelhunt_ex
User noobatcp
Submission Time 2024-06-21 15:44:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hotelhunt_ex.cpp: In function ‘int main()’:
hotelhunt_ex.cpp:8:9: error: ‘pii’ was not declared in this scope
8 | vector<pii> vect(n);
| ^~~
hotelhunt_ex.cpp:8:12: error: template argument 1 is invalid
8 | vector<pii> vect(n);
| ^
hotelhunt_ex.cpp:8:12: error: template argument 2 is invalid
hotelhunt_ex.cpp:9:48: error: invalid types ‘int[int]’ for array subscript
9 | for (int i=0; i<n; ++i)cin>>x[i]>>y[i], vect[i]=mp(x[i], y[i]);
| ^
hotelhunt_ex.cpp:9:50: error: ‘mp’ was not declared in this scope
9 | for (int i=0; i<n; ++i)cin>>x[i]>>y[i], vect[i]=mp(x[i], y[i]);
| ^~
hotelhunt_ex.cpp:13:15: error: ‘begin’ was not declared in this scope
13 | for (auto a:vect)cout<<abs(a.fi-x[n/2])+abs(a.se-y[n/2])<<" ";
|