Problem exponentiate
User bachnguyen123
Submission Time 2025-09-14 22:26:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
exponentiate.cpp: In function ‘long long int solve(int, int)’:
exponentiate.cpp:6:24: error: ‘floor’ was not declared in this scope
6 | long long d = solve(a,floor(b/2);
| ^~~~~
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:19:2: error: ‘cin’ was not declared in this scope
19 | cin>>t;
| ^~~
exponentiate.cpp:24:3: error: ‘cout’ was not declared in this scope
24 | cout<<solve(a,b)%n;
| ^~~~