Problem exponentiate
User ATHY
Submission Time 2024-06-20 09:46:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:8:21: error: uninitialized const ‘M’ [-fpermissive]
8 | ll A,B; const int M; cin >> A >> B >> M;
| ^
exponentiate.cpp:8:38: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘const int’)
8 | ll A,B; const int M; cin >> A >> B >> M;
| ~~~~~~~~~~~~~ ^~ ~
| | |
| | const int
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/