Runtime Error (NZEC)
<p>I have written the following code and it works perfectly fine on my PC but gives a runtime error of NZEC type on Codechef:</p>

<pre><code>import java.io.*;

class Main {
public static void main(String args[]) throws IOException {
    BufferedReader o = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(o.readLine());       //Total videos
    int s[] = new int[n];
    int e[] = new int[n];
    int c=0, i=0;
    for(i=0;i&lt;n;i++)            //Start and end times
    {
        s[i] = Integer.parseInt(o.readLine());           
        e[i] = Integer.parseInt(o.readLine());
    }
    int q = Integer.parseInt(o.readLine()); //No. of groups
    String st = new String();
    int noa = 0 , j = 0 , k = 0, z = 0;
    int count[] = new int[q];    //No. of videos of each group
    for(i=0;i&lt;q;i++)
    {
        int marked[] = new int[n];
        st = o.readLine();
        String temp[] = st.split(" ");
        noa = Integer.parseInt(temp[0]);
        double toa[] = new double[noa];
        for(j=0;j&lt;noa;j++)                   //Do for every alien of ith group
        {
            toa[j] = Double.parseDouble(temp[j+1]);    
            for(k=0;k&lt;n;k++)                //Check for every video
            {
                if(toa[j]&gt;=s[k]&amp;&amp;toa[j]&lt;=e[k]&amp;&amp;marked[k]!=-1)
                {
                    z++;
                    marked[k] = -1;
                }
            }
        }

        count[i] = z;
        z = 0;
    }
    for(i=0;i&lt;q;i++)
        System.out.println(count[i]);
}
}
</code></pre>

<p>Could someone please help me out with this?
If at all the error is due to the use of the <code>split()</code> method, how come I dont get an error on my PC?</p>
