Problem | exponentiate |
---|---|
User | wongethan8192 |
Submission Time | 2023-02-13 16:33:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:2:139: error: ‘x’ was not declared in this scope
2 | using namespace std;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;double Y=pow(A,B);Y-=((int)Y)/M;x.push_back(Y);}for(int j=0;j<N;j++)cout<<X[j]<<"\n";}
| ^