fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. // your code goes here
  8. }
  9. }
  10.  
  11. public struct Punto
  12. {
  13. public int x = 7;
  14. public int y = 5;
  15. }
  16.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Compilation failed: 2 error(s), 0 warnings
ructs cannot have instance field initializers
prog.cs(14,16): error CS0573: `Punto.y': Structs cannot have instance field initializers
stdout
Standard output is empty