Submission #1189750

#TimeUsernameProblemLanguageResultExecution timeMemory
1189750TsaganaMagic Show (APIO24_show)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "Alice.h" using namespace std; std::vector<std::pair<int,int>> Alice() { vector<pair<int,int>> ans; int x = setN(5000); for (int i = 1; i < 5000; i++){ if (i == x) continue ; ans.push_back({x, i}); } return ans; }
#include <bits/stdc++.h> #include "Bob.h" using namespace std; long long Bob(std::vector<std::pair<int,int>> V){ return V[0].F; }

Compilation message (stderr)

# 2번째 컴파일 단계

Bob.cpp: In function 'long long int Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:7:17: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'F'
    7 |     return V[0].F;
      |                 ^