Problem | gcd |
---|---|
User | CoderBC |
Submission Time | 2025-05-06 21:39:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp:3:17: error: ‘syd’ is not a namespace-name
3 | using namespace syd;
| ^~~
gcd.cpp: In function ‘int main()’:
gcd.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> a >> b;
| ^~~
| std::cin
In file included from gcd.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
gcd.cpp:9:9: error: ‘min’ was not declared in this scope; did you mean ‘std::min’?
9 | gcd = min(a, a%b);
| ^~~
| std::min
In file included from /usr/include/c++/9/algorithm:62,
from gcd.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:3456:5: note: ‘std::min’ declared here
3456 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
gcd.cpp:12:9: error: ‘min’ was not declared in this sco