1 2 3 4 5 6 7 8 9 10 11 12 13 | using System; using System.Collections.Generic; public class Animal {} public class Cat : Animal {} public class Test { public static void Main() { Animal[] animals = new Cat[5]; } } |
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKCnB1YmxpYyBjbGFzcyBBbmltYWwge30KcHVibGljIGNsYXNzIENhdCA6IEFuaW1hbCB7fQoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgICAgICAgQW5pbWFsW10gYW5pbWFscyA9IG5ldyBDYXRbNV07CQkKCX0KfQ==
prog.cs(11,23): warning CS0219: The variable `animals' is assigned but its value is never used Compilation succeeded - 1 warning(s)
-
upload with new input
-
result: Success time: 0s memory: 36576 kB returned value: 0


