Submission #717680

# Submission time Handle Problem Language Result Execution time Memory
717680 2023-04-02T10:44:06 Z VMaksimoski008 Memory (IOI10_memory) C++14
Compilation error
0 ms 0 KB
#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

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