fork download
  1. #include <iostream>
  2. using namespace std;
  3. class XXX
  4. {
  5. int data[1024];
  6. public:
  7. XXX()
  8. {}
  9. void init()
  10. {
  11. const auto my_data = data;
  12. auto lambda_mine = [&my_data](int & l, int & r)
  13. {
  14. return my_data[l]<my_data[r];
  15. };
  16. int x = 1;
  17. int y = 4;
  18. lambda_mine(x,y);
  19. }
  20. };
  21. int main() {
  22. // your code goes here
  23. XXX obj;
  24. return 0;
  25. }
Success #stdin #stdout 0.01s 5300KB
stdin
Standard input is empty
stdout
Standard output is empty