Submission #410171

#TimeUsernameProblemLanguageResultExecution timeMemory
410171levsog2004Fun Tour (APIO20_fun)C++14
Compilation error
0 ms0 KiB
#include "fun.h" #include <vector> std::vector<int> createFunTour(int a, int b) { cout << a + b << endl; }

Compilation message (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 | }
      | ^