제출 #767408

#제출 시각아이디문제언어결과실행 시간메모리
767408Gabi88Memory (IOI10_memory)C++14
컴파일 에러
0 ms0 KiB
#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; }

컴파일 시 표준 에러 (stderr) 메시지

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;
      |         ^