제출 #154055

#제출 시각아이디문제언어결과실행 시간메모리
154055combi1k1라멘 (JOI14_ramen)C++14
컴파일 에러
0 ms0 KiB
#include "ramen.h"
#include "grader.h"

void Ramen(int n)   {
    int L = -1;
    int R = -1;
    for(int i = 0 ; i < n ; i += 2) {
        int x = i;
        int y = i + 1;
        if (y >= n) y = x;
        else    {
            if (Compare(x,y) < 0)
                x = i + 1,
                y = i;
        }
        if (L < 0)  {
            L = x;
            R = y;
        }
        else    {
            if (Compare(L,x) < 0)   L = x;
            if (Compare(R,y) > 0)   R = y;
        }
    }
    Answer(R,L);
}

컴파일 시 표준 에러 (stderr) 메시지

ramen.cpp:2:10: fatal error: grader.h: No such file or directory
 #include "grader.h"
          ^~~~~~~~~~
compilation terminated.