Problem | kusac |
---|---|
User | PlayVoltz |
Submission Time | 2023-08-11 22:46:41 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
kusac.cpp: In function ‘int main()’:
kusac.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin>>n>>m;
| ^~~
kusac.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
kusac.cpp:9:3: error: ‘cout’ was not declared in this scope
9 | cout<<n%m;
| ^~~~
kusac.cpp:9:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
kusac.cpp:13:3: error: ‘cout’ was not declared in this scope
13 | cout<<m/(gcd(n, m))-1;
| ^~~~
kusac.cpp:13:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
kusac.cpp:13:12: error: ‘gcd’ was not declared in this scope
13 | cout<<m/(gcd(n, m))-1;
| ^~~
kusac.cpp:16:2: error: ‘cout’ was not d