fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. auto f = [](auto x) { return x*x; };
  6.  
  7. cout << f(2);
  8. return 0;
  9. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
4