Submission #1084840

# Submission time Handle Problem Language Result Execution time Memory
1084840 2024-09-07T05:44:04 Z Timosh Magic Show (APIO24_show) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#include "Alice.h"
vector<pair<int, int>> Alice()
{
    vector<pair<int, int>> res;
    long long x = setN(5000);
    for (int i = 1; i <= 5000; i++)
    {
        if (i != x)
            res.push_back({i, x});
    }
    return res;
}
#include <bits/stdc++.h>
using namespace std;
/#include "Bob.h"

long long Bob(vector<pair<int, int>> V)
{
    int mx = 1;
    map<int, int> mp;
    for (auto &[x, y] : V)
    {
        mp[x]++;
        mp[y]++;
    }
    for (auto &[x, y] : mp)
    {
        if (mp[mx] < y)
            mx = x;
    }
    return mx;
}

Compilation message

Bob.cpp:3:2: error: stray '#' in program
    3 | /#include "Bob.h"
      |  ^
Bob.cpp:3:1: error: expected unqualified-id before '/' token
    3 | /#include "Bob.h"
      | ^