Submission #410036

#TimeUsernameProblemLanguageResultExecution timeMemory
410036levsog2004Fun Tour (APIO20_fun)C++14
Compilation error
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; }

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