fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int L = 2;
  8. int N = 3;
  9. int [,] Ar = new int [L,N];
  10.  
  11. for (i=1, i<=L, i++)
  12. {
  13. for(j=1, j<=N, j++)
  14. {
  15. A[i,j] = Console.ToInt32(Math.Pow(i+j,3);
  16. int B[i] = A[i,j]+B[i];
  17. }
  18.  
  19. int C = C+B[i];
  20.  
  21. }
  22.  
  23. Console.WriteLine(C);
  24. }
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(11,31): error CS1525: Unexpected symbol `)', expecting `,' or `;'
prog.cs(13,28): error CS1525: Unexpected symbol `)', expecting `,' or `;'
prog.cs(15,42): error CS1525: Unexpected symbol `;', expecting `)' or `,'
prog.cs(16,8): 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
prog.cs(16,18): error CS1525: Unexpected symbol `]', expecting `,', `;', or `='
Compilation failed: 5 error(s), 0 warnings
stdout
Standard output is empty