제출 #410171

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

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

fun.cpp: In function 'std::vector<int> createFunTour(int, int)':
fun.cpp:6:2: error: 'cout' was not declared in this scope
    6 |  cout << a + b << endl;
      |  ^~~~
fun.cpp:6:19: error: 'endl' was not declared in this scope
    6 |  cout << a + b << endl;
      |                   ^~~~
fun.cpp:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^