Submission #892969

# Submission time Handle Problem Language Result Execution time Memory
892969 2023-12-26T09:22:33 Z LCJLY Memory (IOI10_memory) C++14
Compilation error
0 ms 0 KB
#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

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() {
      |             ^