Problem exponentiate
User wongethan8192
Submission Time 2023-02-13 16:42:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:13:120: error: expected ‘)’ before ‘;’ token
13 | int main(){vector<long int>X;int N;cin>>N;for(int i=0;i<N;i++){int A,B,M;cin>>A>>B>>M;X.push_back(exponentiation(A,B,M);)}for(int j=0;j<N;j++)cout<<X[j]<<"\n";}
| ~ ^
| )
exponentiate.cpp:13:121: error: expected primary-expression before ‘)’ token
13 | int main(){vector<long int>X;int N;cin>>N;for(int i=0;i<N;i++){int A,B,M;cin>>A>>B>>M;X.push_back(exponentiation(A,B,M);)}for(int j=0;j<N;j++)cout<<X[j]<<"\n";}
|