TRAITHLON question on INOI 2015 Practice Server

Following is the code that I submitted in Java for the Triathlon question. It works fine on BlueJ, but the INOI compiler is giving me this error
" /tmp/ccPmRpNO.o: In function main': cc0VV4yM.i:(.text.startup+0xf): undefined reference to TRIATHLON::class$’
collect2: error: ld returned 1 exit status "

Please let me know what the meaning of the error is and how I can possibly resolve it.

Program>>

package IOI;

import java.util.*;

class TRIATHLON
{
public static void main()
{

    Scanner sc= new Scanner(System.in);
    
    int N=sc.nextInt();
    int TRI[][]= new int[N][3];
    
    for(int i=0;i<N;i++)
    {
        for(int j=0;j<3;j++)
        {
            TRI[i][j]=sc.nextInt();
        }
    }
    int l=0;
    int temp=0;
    
    for(int i=0;i<N;i++)
    {
        for(int m=0;m<N-i-1;m++)
        {
            if(TRI[m+1][0]>TRI[m][0])
            {
                l=0;
                for(int j=0;j<3;j++)
                {
                    temp=TRI[m+1][l];
                    TRI[m+1][l]=TRI[m][j];
                    TRI[m][j]=temp;
                    l++;
                   
                }
                
            }
        }            
    }
    
    int t=0;
    
    for(int i=0;i<N;i++)
    {
        if(i<N-1)
        {
            t=t+TRI[i][0];
        }
        else
        {
            for(int j=0;j<3;j++)
            {
                t=t+TRI[i][j];
            }
        }
    }
    
    System.out.println(t);
}

}

That error occurs because you haven’t given arguments in the main() method.
It should be - public static void main( String[] args )
Also, do not write the package statement. (ie package IOI)

Ahhh thank you so much!

Mention not :slight_smile: