reset password
Author Message
dbravoru
Posts: 60
Posted 23:44 Mar 11, 2014 |

I'd just like to go on record to show that I attempted to test my code on HackerRank, but got the following message and I do not know what it means.

Code submitted by player 2 resulted in following compilation error with status 255.
Solution.java:4: error: class AI_BravoRuelasTemplate is public, should be declared in a file named AI_BravoRuelasTemplate.java public class AI_BravoRuelasTemplate { ^ 1 error

 

(player 2 is me, by the way)

My code compiled successfully on BlueJ and passed all the JUnit tests.

 

Eric Liao
Posts: 158
Posted 23:46 Mar 11, 2014 |

When you submit the file to HackerRank. There is one thing you have to change.

You have to change your class name from AI_[Last name] to solution in order to pass HackerRank requirement.