BOARDCOVER에서 non zero return code 에러가 납니다 ㅜㅜ

  • sdaewon12
    sdaewon12

    전혀 문제가 없어보이는데
    디버깅 해보면 메인함수 리턴과 동시에 에러가 납니다ㅜㅜ
    전혀 감을 못잡겠는데 힌트라도 얻을 수 있을까요?

    import java.util.Scanner;

    public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int tests, width, height;
        char[][] map = new char[20][20];
    
        tests = sc.nextInt();
    
        while(tests != 0) {
            height = sc.nextInt();
            width = sc.nextInt();
    
            for(int i = 0; i < height; i++) {
                String currentString = sc.next();
    
                for(int j = 0; j < width; j++) {
                    map[i][j] = currentString.charAt(j);
                }
            }
    
            BOARDCOVER bc = new BOARDCOVER(map, width, height);
            System.out.println("result : " + bc.getCaseCount());
    
            tests--;
        }
    
        sc.close();
    }

    }


    10년 전
1개의 댓글이 있습니다.
  • sdaewon12
    sdaewon12

    BOARDCOVER 클래스는 불필요한거 같아서 기입하지 않았습니다


    10년 전 link
  • 정회원 권한이 있어야 커멘트를 다실 수 있습니다. 정회원이 되시려면 온라인 저지에서 5문제 이상을 푸시고, 가입 후 7일 이상이 지나셔야 합니다. 현재 문제를 푸셨습니다.