fork download
  1.  
  2.  
  3. class U {
  4. public:
  5. unsigned long id;
  6. unsigned long generation;
  7. static unsigned long total_copies;
  8. U() : id(0), generation(0) { }
  9. U(unsigned long n) : id(n), generation(0) { }
  10. U(const U& z) : id(z.id), generation(z.generation + 1) {
  11. ++total_copies;
  12. }
  13. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/crt1.o: In function `_start':
/build/glibc-5CYv_T/glibc-2.19/csu/../sysdeps/i386/start.S:111: undefined reference to `main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
stdout
Standard output is empty