fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. const int arr[10]={76,89,23,1,55,78,99,12,65,100};
  8. int arr1[5];
  9. arr2[5];
  10.  
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(7,15): error CS1525: Unexpected symbol `[', expecting `,', `;', or `='
prog.cs(7,18): error CS1525: Unexpected symbol `]', expecting `,', `;', or `='
prog.cs(7,23): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,26): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,29): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,31): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,34): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,37): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,40): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,43): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,46): error CS1525: Unexpected symbol `,', expecting `,', `;', or `='
prog.cs(7,51): error CS1002: ; expected
prog.cs(8,11): error CS0650: Syntax error, bad array declarator. To declare a managed array the rank specifier precedes the variable's identifier. To declare a fixed size buffer field, use the fixed keyword before the field type
Compilation failed: 13 error(s), 0 warnings
stdout
Standard output is empty