제출 #129580

#제출 시각아이디문제언어결과실행 시간메모리
129580ygh0410보물 찾기 (CEOI13_treasure2)C++14
컴파일 에러
0 ms0 KiB
void findTreasure (int N) { int cnt = countTreasure(1, 1, N, N); if(cnt > 0) Report (1, 1); }

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

treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:3:15: error: 'countTreasure' was not declared in this scope
     int cnt = countTreasure(1, 1, N, N);
               ^~~~~~~~~~~~~
treasure.cpp:3:15: note: suggested alternative: 'findTreasure'
     int cnt = countTreasure(1, 1, N, N);
               ^~~~~~~~~~~~~
               findTreasure
treasure.cpp:4:17: error: 'Report' was not declared in this scope
     if(cnt > 0) Report (1, 1);
                 ^~~~~~
treasure.cpp:4:17: note: suggested alternative: 'short'
     if(cnt > 0) Report (1, 1);
                 ^~~~~~
                 short