Guest User

Untitled

a guest
Jan 23rd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. // c++ -fpic -std=c++11 function.cpp -o function
  2. #include<vector>
  3. #include<iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. auto func = [](int m, int x, vector<int> j){for (auto &c : j) cout<<"Y: "<<(m*x)+c<<"\n";};
  10. func(5, 3, {1,2,3,4,5});
  11. return 0;
  12. }
Add Comment
Please, Sign In to add comment