Problem exponentiate
User emyz
Submission Time 2023-12-13 01:02:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp:2:17: error: ‘sfd’ is not a namespace-name
2 | using namespace sfd;
| ^~~
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;
| ^
exponentiate.cpp:30:14: error: ‘m’ was not declared in this scope
30 | cin>>a>>b>>m;
| ^
exponentiate.cpp:35:3: error: ‘cout’ was not declared