Submission #892969

#TimeUsernameProblemLanguageResultExecution timeMemory
892969LCJLYMemory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { vector<int>storage[30]; for(int x=1;x<=50;x++){ int temp=faceup(x)-'A'; storage[temp].push_back(x); } for(int x=0;x<25;x++){ for(auto it:storage[x]){ int a=faceup(it)-'A'; } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:15:8: warning: unused variable 'a' [-Wunused-variable]
   15 |    int a=faceup(it)-'A';
      |        ^
memory.cpp:17:4: error: expected '}' at end of input
   17 |    }
      |    ^
memory.cpp:6:13: note: to match this '{'
    6 | void play() {
      |             ^