Problem | gcd |
---|---|
User | LimCheeHann |
Submission Time | 2025-02-23 10:31:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int main()’:
gcd.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> a >> b;
| ^~~
| std::cin
In file included from gcd.cpp:2:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
gcd.cpp:7:3: error: ‘pair’ was not declared in this scope; did you mean ‘std::pair’?
7 | pair(a,b)=minmax(a,b);
| ^~~~
| std::pair
In file included from /usr/include/c++/9/utility:70,
from /usr/include/c++/9/algorithm:60,
from gcd.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: ‘std::pair’ declared here
208 | struct pair
| ^~~~
gcd.cpp:7:13: error: ‘minmax’ was not declared in this scope; did you mean ‘std::minmax’?
7 | pair(a,b)=minmax(a,b);
| ^~~~