Submission #767408

#TimeUsernameProblemLanguageResultExecution timeMemory
767408Gabi88Memory (IOI10_memory)C++14
Compilation error
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; }

Compilation message (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;
      |         ^