Problem | exponentiate |
---|---|
User | BigEd15 |
Submission Time | 2025-05-21 16:39:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘long long int expo(long long int, long long int, long long int)’:
exponentiate.cpp:7:31: error: too few arguments to function ‘long long int expo(long long int, long long int, long long int)’
7 | if (B%2==1) return expo(A,B-1)*A;
| ^
exponentiate.cpp:5:5: note: declared here
5 | int expo(int A, int B, int M) {
| ^~~~
exponentiate.cpp:8:24: error: too few arguments to function ‘long long int expo(long long int, long long int, long long int)’
8 | int save = expo(A, B/2);
| ^
exponentiate.cpp:5:5: note: declared here
5 | int expo(int A, int B, int M) {
| ^~~~
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:20:12: error: initializer in range-based ‘for’ loop
20 | for (int i=0: i<T; i++) {
| ^
exponentiate.cpp:20:19: error: expected ‘)’ before ‘;’ token
20 | for (in