compilation error in java "stray '@' in program"
<p>i am trying to submit a java program in <a href="http://www.codechef.com" rel="nofollow">codechef</a>. I successfully compiled it and ran it using netbeans. But when i submit the code by uploading the corresponding .java file... it comes up like this...</p>

<p><code>
prog.cpp:41: error: stray '@' in program prog.cpp:4: error: 'import' does not name a type prog.cpp:7: error: expected unqualified-id before 'public'
</code></p>

<p>my java program starts like this....</p>

<pre><code>import java.util.Scanner;
</code></pre>

<p><code>public class jewels{
    static int CNT=0;
    static String q,qq;
</code></p>

<p>and so on....</p>

<p>@Jon Skeet... u were ... I got the error... Sorry for that.. I was submitting it as a C++ file.
but now i am getting the new one...</p>

<p><code>Main.java:7: class jewels is public, should be declared in a file named jewels.java public class jewels{ ^ 1 error
</code></p>

<p>although i uploaded the jewels.java file...
please help...</p>
