| Problem | nycoordinates |
|---|---|
| User | j0ashhh |
| Submission Time | 2026-02-19 21:17:06 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
nycoordinates.cpp:3:29: error: wrong number of template arguments (1, should be 2)
3 | long long dis(pair<long long> a, pair<long, long> b){
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from nycoordinates.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: provided for ‘template<class _T1, class _T2> struct std::pair’
208 | struct pair
| ^~~~
nycoordinates.cpp: In function ‘long long int dis(int, std::pair<long int, long int>)’:
nycoordinates.cpp:4:12: error: request for member ‘first’ in ‘a’, which is of non-class type ‘int’
4 | return (a.first-b.first)*(a.first-b.first) + (a.second-b.second)*(a.second-b.second);
|