fork download
#include
#include
using namespace std;
list& func();

int main(){
list a = func();
delete &a;
std::cout<<"Here\n";
}

list& func(){
list* ptr = new list;
return *ptr;
}
Runtime error #stdin #stdout 0.01s 2808KB
stdin
Standard input is empty
stdout

Standard output is empty