Submission #1276791

#TimeUsernameProblemLanguageResultExecution timeMemory
1276791sagnbaevvMemory (IOI10_memory)C++20
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { map <char, pair<int, int>>m; for (int i = 1; i <= 50; i++) { char c = faceup(i); if (m[c].first == 0) { m[c].second = i; } else { m[c].first = i; } } for (auto x : m) { faceup(x.second.first); faceup(x.second.second);

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:18:41: error: expected '}' at end of input
   18 |                 faceup(x.second.second);
      |                                         ^
memory.cpp:16:26: note: to match this '{'
   16 |         for (auto x : m) {
      |                          ^
memory.cpp:18:41: error: expected '}' at end of input
   18 |                 faceup(x.second.second);
      |                                         ^
memory.cpp:5:13: note: to match this '{'
    5 | void play() {
      |             ^