제출 #410036

#제출 시각아이디문제언어결과실행 시간메모리
410036levsog2004즐거운 행로 (APIO20_fun)C++14
컴파일 에러
0 ms0 KiB
#include "fun.h" #include <vector> std::vector<int> createFunTour(int N, int Q) { int H = hoursRequired(0, N - 1); int A = attractionsBehind(0, N - 1); return std::vector<int>(N); cout << 1 << endl; }

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

fun.cpp: In function 'std::vector<int> createFunTour(int, int)':
fun.cpp:10:3: error: 'cout' was not declared in this scope
   10 |   cout << 1 << endl;
      |   ^~~~
fun.cpp:10:16: error: 'endl' was not declared in this scope
   10 |   cout << 1 << endl;
      |                ^~~~
fun.cpp:6:7: warning: unused variable 'H' [-Wunused-variable]
    6 |   int H = hoursRequired(0, N - 1);
      |       ^
fun.cpp:7:7: warning: unused variable 'A' [-Wunused-variable]
    7 |   int A = attractionsBehind(0, N - 1);
      |       ^