제출 #1189750

#제출 시각아이디문제언어결과실행 시간메모리
1189750Tsagana마술쇼 (APIO24_show)C++20
컴파일 에러
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;
}

컴파일 시 표준 에러 (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;
      |                 ^