Problem exponentiate_ex
User itsLQ
Submission Time 2024-01-05 11:51:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate_ex.cpp:2:21: error: expected unqualified-id before ‘)’ token
2 | using namespace std;)
| ^
exponentiate_ex.cpp: In function ‘__int128 ex(__int128)’:
exponentiate_ex.cpp:9:24: error: ‘M’ was not declared in this scope
9 | if (!P) return 1 % M;
| ^
exponentiate_ex.cpp:12:28: error: ‘M’ was not declared in this scope
12 | return (((X * X) % M) * A) % M;
| ^
exponentiate_ex.cpp:12:33: error: ‘A’ was not declared in this scope
12 | return (((X * X) % M) * A) % M;
| ^
exponentiate_ex.cpp:15:26: error: ‘M’ was not declared in this scope
15 | return (X * X) % M;
| ^
exponentiate_ex.cpp: In function ‘int main()’:
exponentiate_ex.cpp:39:9: error: ‘A’ was not declared in this scope
39 | A = read();
| ^