답안 #767408

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
767408 2023-06-26T18:01:04 Z Gabi88 Memory (IOI10_memory) C++14
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
//#include<grader.h>
//#include<memory.h>
using namespace std;

vector<set<int>> v;
set<int> s;
char a;

void play(){
	while(v.size() < 25) v.push_back(s);
	for(int i=1; i < 51; i++){ a = faceup(i); v[a-'A'].insert(i); }
	for(int i=1; i < 26; i++){
		for(auto it : v[i]) a = faceup(it);
	}
	return 0;
}

Compilation message

memory.cpp: In function 'void play()':
memory.cpp:12:33: error: 'faceup' was not declared in this scope
   12 |  for(int i=1; i < 51; i++){ a = faceup(i); v[a-'A'].insert(i); }
      |                                 ^~~~~~
memory.cpp:14:27: error: 'faceup' was not declared in this scope
   14 |   for(auto it : v[i]) a = faceup(it);
      |                           ^~~~~~
memory.cpp:16:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
   16 |  return 0;
      |         ^