Problem | gcd |
---|---|
User | Ant1234567890 |
Submission Time | 2025-06-16 09:58:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int main()’:
gcd.cpp:6:4: 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:7:23: error: ‘gcd’ was not declared in this scope; did you mean ‘std::gcd’?
7 | int result = gcd(a,b);
| ^~~
| std::gcd
In file included from gcd.cpp:2:
/usr/include/c++/9/numeric:132:5: note: ‘std::gcd’ declared here
132 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
gcd.cpp:8:4: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
8 | cout<<result;
| ^~~~
| std::cout
In file included from gcd.cpp:1:
/usr/include/c++/9/