My issue
My code
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static int problemfun(int[]arr){
int count=0;
for (int i=0;i<=n ;i++ ){
int problem=10;
if(arr[i]>problem){
count++;
}
return count;
public static void main (String[] args){
scanner scn =new scanner(System.in);
int n=scn.nextint();
int[]arr=new int[n];
for(int i=0;i<=n;i++){
arr[i]=scn.nextInt();
}
}
}
Problem Link: PRACTICEPERF Problem - CodeChef