Submission #341799

#TimeUsernameProblemLanguageResultExecution timeMemory
341799marvenleeMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <map> using namespace std; void play() { int i; char a, b; map<char,int> mp; int j=1; for (i=1; i<=25; i++){ a = faceup(j); if(mp.find(a)!=mp.end()){ b = faceup(mp.find(a)->second); } else { mp[a]=j j+=1; b= faceup(j); mp[b]=j; } j+=1; } return; }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:18:20: error: expected ';' before 'j'
   18 |             mp[a]=j
      |                    ^
      |                    ;
   19 |             j+=1;
      |             ~