fork download
  1. #include <iostream>
  2. using namespace std;
  3. template<typename callable >
  4. void esegui (callable f){
  5. f();
  6. }
  7. struct func{
  8. void operator()(){
  9. cout<<"Prova "<<endl ;
  10. }
  11. };
  12. int main() {
  13. func call;
  14. esegui (call);
  15. // your code goes here
  16. return 0;
  17. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
Prova