Submission #1221528

#TimeUsernameProblemLanguageResultExecution timeMemory
1221528nibert메시지 (IOI24_message)C++17
Compilation error
0 ms0 KiB
#include <vector>
#include <cstdint>  // for uint32_t
using namespace std;

const uint32_t GEN[16] = {
    0b1111111111111110000000000000000,
    0b0111111111111111000000000000000,
    0b0011111111111111100000000000000,
    0b0001111111111111110000000000000,
    0b0000111111111111111000000000000,
    0b0000011111111111111100000000000,
    0b0000001111111111111110000000000,
    0b0000000111111111111111000000000,
    0b0000000011111111111111100000000,
    0b0000000001111111111111110000000,
    0b0000000000111111111111111000000,
    0b0000000000011111111111111100000,
    0b0000000000001111111111111110000,
    0b0000000000000111111111111111000,
    0b0000000000000011111111111111100,
    0b0000000000000001111111111111110,
};

// Provided by the grader
extern vector<bool> send_packet(vector<bool> packet);
extern vector<vector<bool>> receive_packets();

void send_message(vector<bool> M, vector<bool>) {
    int L = M.size();
    for (int i = 0; i < L; i += 16

Compilation message (stderr)

message.cpp: In function 'void send_message(std::vector<bool>, std::vector<bool>)':
message.cpp:30:35: error: expected ')' at end of input
   30 |     for (int i = 0; i < L; i += 16
      |         ~                         ^
      |                                   )
message.cpp:30:35: error: expected statement at end of input
message.cpp:30:35: error: expected '}' at end of input
message.cpp:28:49: note: to match this '{'
   28 | void send_message(vector<bool> M, vector<bool>) {
      |                                                 ^