Submission #1211028

#TimeUsernameProblemLanguageResultExecution timeMemory
1211028sula2메시지 (IOI24_message)C++20
Compilation error
0 ms0 KiB
#include "message.h"
#include <iostream>
#define all(a) a.begin(), a.end()
#define popcount(x) __builtin_popcountll(x)
using namespace std;
using namespace chrono;

void send_message(vector<bool> message, vector<bool> C) {
    for (auto b : message) {
        send_packet(vector<bool>(31, b));
    }
}

vector<bool> receive_message(vector<vector<bool>> packets) {
    vector<bool> message;
    for (auto packet : packets) {
        int cnt[2] = {};
        for (auto b : packet)
            cnt[b]++;
        message.push_back(cnt[0] < cnt[1]);
    }
    return message;
}

Compilation message (stderr)

message.cpp:6:17: error: 'chrono' is not a namespace-name
    6 | using namespace chrono;
      |                 ^~~~~~