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