fork download
  1. import std.stdio;
  2.  
  3. void main() {
  4. int[10][5] mat;
  5.  
  6. writeln(mat[9]);
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.d(6): Error: array index 9 is out of bounds mat[0 .. 5]
prog.d(6): Error: template std.stdio.writeln cannot deduce function from argument types !()(int[10]), candidates are:
/usr/include/dmd/phobos/std/stdio.d(3413):        std.stdio.writeln(T...)(T args)
stdout
Standard output is empty