Problem | tourist_noi |
---|---|
User | personjs |
Submission Time | 2024-05-19 16:34:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
tourist_noi.cpp: In function ‘int main()’:
tourist_noi.cpp:10:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
10 | cin >> n;
| ^~~
| std::cin
In file included from tourist_noi.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
tourist_noi.cpp:22:42: error: ‘greater’ was not declared in this scope; did you mean ‘std::greater’?
22 | sort(friends.begin(), friends.end(), greater<int>());
| ^~~~~~~
| std::greater
In file included from /usr/include/c++/9/string:48,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/inclu