fork(1) download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <vector>
  4.  
  5. void do_szescianu(std::vector<double> &t) {
  6.  
  7. for (double i:t) {
  8. std::cout<<pow(i,3)<<std::endl;
  9. }
  10. }
  11.  
  12. int main() {
  13. std::vector<double> nums = {1,2,3,4,5};
  14. do_szescianu(nums);
  15. }
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
1
8
27
64
125