Submission #1303141

#TimeUsernameProblemLanguageResultExecution timeMemory
1303141gabrielz이주 (IOI25_migrations)C++20
Compilation error
0 ms0 KiB
constexpr int LM = 9998, RM = 20000; int lm = LM, rm = RM; int send_message(int N, int i, int Pi) { if (lm % 2 == 0) { return lm--; } else { return rm--; } } std::pair<int, int> longest_path(std::vector<int> S) { std::make_pair(LM, RM); }

Compilation message (stderr)

migrations.cpp:13:6: error: 'pair' in namespace 'std' does not name a template type
   13 | std::pair<int, int> longest_path(std::vector<int> S) {
      |      ^~~~
migrations.cpp:1:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
  +++ |+#include <utility>
    1 |