Submission #1317331

#TimeUsernameProblemLanguageResultExecution timeMemory
1317331matrix081Memory (IOI10_memory)C++20
Compilation error
0 ms0 KiB
#include "grader.h"
#include "memory.h"
#include <vector>
using namespace std;

void play() {
   int i,j, score=0;
   char a, b;
   vector <int> guessed;
   for (i=0; i<50; ++i) {
      for (j=i+1;j<50;j++){
         a = faceup(i);
         b = faceup(j);
         if(a==b){
            guessed.push_back(a)
            score+=1;
         }
        if(score==25){break;}
      }
   }
}

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:15:33: error: expected ';' before 'score'
   15 |             guessed.push_back(a)
      |                                 ^
      |                                 ;
   16 |             score+=1;
      |             ~~~~~