The series returns again! This time with color code formatting ! (Thanks to the Brilliant Team)
Alex is wondering how to build an android robot that can do Mathfights for him. He is currently stuck on one part of the phase, though:
1 2 3 4 5 6 7 8 9 10 |
|
What was his error? Input the number from the chart below:
1 | No errors. |
2 | No such function 'printf' |
3 | Comment placement incorrect |
4 | Forgotten Semicolon |
5 | Parse error: type 'int' cannot be explicitly casted as type 'char' |
6 | Parse error: type 'char' cannot be explicitly casted as type 'int' |
7 | Parse error: type 'int' cannot be implicitly casted as type 'char' |
8 | Parse error: type 'char' cannot be implicitly casted as type 'int' |
9 | I give up. |
** Image credit: Flickr user D J
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
actually there is two types of errors here. first one is if i consider the compiler is only C compiler than it will not support the single line C++ type // comment. second is the opening brace of else block is commented out.