Problem | exponentiate |
---|---|
User | emyz |
Submission Time | 2023-12-13 01:02:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp:2:17: error: ‘sfd’ is not a namespace-name
2 | using namespace sfd;
| ^~~
exponentiate.cpp: In function ‘int qexp(int, int, int)’:
exponentiate.cpp:19:10: error: ‘square’ was not declared in this scope
19 | return square(qexp(x,n/2,m)%m)%m;
| ^~~~~~
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:25:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
25 | cin>>n;
| ^~~
| std::cin
In file included from exponentiate.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
exponentiate.cpp:29:10: error: expected unqualified-id before ‘int’
29 | int a, int b, int m;
| ^~~
exponentiate.cpp:30:11: error: ‘b’ was not declared in this scope
30 | cin>>a>>b>>m;
|