Submission #717680

#TimeUsernameProblemLanguageResultExecution timeMemory
717680VMaksimoski008Memory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <map> void play() { int candies = 0; std::map<char, int> mapa; for(int i=1; i<=50; i++) { char ch = faceup(i); mapa[ch]++; if(mapa[ch] == 2) candies++: if(candies == 25) return ; } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:16:22: error: expected ';' before ':' token
   16 |             candies++:
      |                      ^
      |                      ;