제출 #1362610

#제출 시각아이디문제언어결과실행 시간메모리
1362610opeleklanos마술쇼 (APIO24_show)C++20
5 / 100
2 ms1092 KiB
#include <iostream>
#include <vector>
using namespace std;

#include "Alice.h"

#define ll long long

vector<pair<int, int>> Alice(){
    ll x = setN(5000);
    vector<pair<int, int>> ans;
    for(ll i = 1; i<=5000; i++){
        if(i!=x) ans.push_back({x, i});
    }
    return ans;
}
#include <iostream>
#include <vector>
using namespace std;

#include "Bob.h"

#define ll long long

long long Bob(vector<pair<int, int>> edges){
    ll a = edges[0].first;
    ll b = edges[0].second;
    ll c = edges[1].first;
    ll d = edges[1].second;
    if(a == c) return a;
    if(b == c) return b;
    if(a == d) return a;
    if(b == d) return b;
}

컴파일 시 표준 에러 (stderr) 메시지

# 2번째 컴파일 단계

Bob.cpp: In function 'long long int Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
   18 | }
      | ^
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…