(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #1084674

#TimeUsernameProblemLanguageResultExecution timeMemory
1084674AliyyiakbarMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" #include "grader.h" #include "memory.h" void play() { map<char,int>mp; for (int i = 1; i <= 50; ++i) { mp[faceup(i)] = i; } for (int i = 1; i <= 50; ++i) { char x = faceup(i); faceup(mp[x]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:7:5: error: 'map' was not declared in this scope
    7 |     map<char,int>mp;
      |     ^~~
memory.cpp:7:5: note: suggested alternatives:
In file included from /usr/include/c++/10/map:61,
                 from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
                 from memory.cpp:1:
/usr/include/c++/10/bits/stl_map.h:100:11: note:   'std::map'
  100 |     class map
      |           ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
                 from memory.cpp:1:
/usr/include/c++/10/map:78:13: note:   'std::pmr::map'
   78 |       using map
      |             ^~~
memory.cpp:7:9: error: expected primary-expression before 'char'
    7 |     map<char,int>mp;
      |         ^~~~
memory.cpp:10:9: error: 'mp' was not declared in this scope
   10 |         mp[faceup(i)] = i;
      |         ^~
memory.cpp:15:16: error: 'mp' was not declared in this scope
   15 |         faceup(mp[x]);
      |                ^~