fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct list { int n; list* next; };
  5.  
  6. list* empty = NULL; // 0
  7.  
  8. list* push_front(int n, list* l) {
  9. list* p = new list;
  10. p -> n = n; // *p.n = n;
  11. p -> next = l; // *p.next = l;
  12. return p;
  13. }
  14.  
  15. int main() {
  16. // your code goes here
  17. return 0;
  18. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
Standard output is empty