Submission #767407

#TimeUsernameProblemLanguageResultExecution timeMemory
767407Gabi88Memory (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:16:9: error: return-statement with a value, in function returning 'void' [-fpermissive]
   16 |  return 0;
      |         ^