fork(1) download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. #include <cmath>
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9. std::vector<float> A(2, -1.23f);
  10. std::transform(A.begin(), A.end(), A.begin(), [] (float f) { return std::abs(f); });
  11. // your code goes here
  12. return 0;
  13. }
Success #stdin #stdout 0s 3268KB
stdin
Standard input is empty
stdout
Standard output is empty