Problem | gentlepairs |
---|---|
User | Joashhh |
Submission Time | 2024-11-14 14:44:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gentlepairs.cpp: In function ‘int main()’:
gentlepairs.cpp:6:2: error: template placeholder type ‘pair<...auto...>’ must be followed by a simple declarator-id
6 | pair arr[a];
| ^~~~
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 gentlepairs.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: ‘template<class _T1, class _T2> struct std::pair’ declared here
208 | struct pair
| ^~~~
gentlepairs.cpp:11:3: error: ‘arr’ was not declared in this scope
11 | arr[i] = make_pair(x,y);
| ^~~
gentlepairs.cpp:15:14: error: ‘arr’ was not declared in this scope
15 | pair p1 = arr[i];
| ^~~