Problem | exponentiate_ex |
---|---|
User | sporknives |
Submission Time | 2024-12-31 11:41:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate_ex.cpp: In function ‘int main()’:
exponentiate_ex.cpp:19:12: error: ‘cin’ was not declared in this scope
19 | int t; cin >> t;
| ^~~
exponentiate_ex.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #define int long long
exponentiate_ex.cpp:23:9: error: ‘cout’ was not declared in this scope
23 | cout << exponentiate(a, b, m) << "\n";
| ^~~~
exponentiate_ex.cpp:23:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?