Problem exponentiate
User xiaoqiwang04
Submission Time 2023-05-10 18:28:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:22:50: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type’ {aka ‘double’} and ‘__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type’ {aka ‘double’} to binary ‘operator%’
22 | for (int i =0; i<=ans.size();i++)cout<<ans[i]%m[i]<<endl;