fork download
  1. using System;
  2.  
  3. public class Man
  4. {
  5. static int num;
  6. public Man parent = new Man(); //У каждого человека есть родители, ведь так?
  7.  
  8. static Man()
  9. {
  10. num = 0;
  11. }
  12.  
  13. public Man()
  14. {
  15. num++;
  16. }
  17. }
  18. public class Test
  19. {
  20. public static void Main()
  21. {
  22. var a=new Man;
  23.  
  24. }
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(22,14): error CS1526: Unexpected symbol `;', expecting `(', `[', or `{'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty