java - SPOJ solution submission -


i newbie trying submit solution problem on spoj in java. have written code in java class name graph , file name graph.java. on submission, getting compilation error as:

main.java:18: error: class graph public, should declared in file named graph.java public class graph {         ^ 1 error 

can point out wrong file name?

in spoj java solutions must submitted main.java file contains main method. see "solution test in java" example, states:

the main class of program must called main.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -