Submission #298284

#TimeUsernameProblemLanguageResultExecution timeMemory
298284aloo123Memory (IOI10_memory)C++14
Compilation error
0 ms0 KiB
// #include "grader.h" // #include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; char a[51]; bool vis[51]; map<char,pair<int,int>> m; void play() { for(int i = 1;i<=50;i++){ a[i] = faceup(i); } for(int i =1;i<=50;i++){ if(vis[i] == true) continue; for(int j = 1;j<=50;j++){ if(vis[j] == false && a[i] == a[j] && i != j){ m[a[i]] = make_pair(i,j); vis[j] = true; vis[i] = true; break; } } } for(char c = 'A';c<='Y';c++){ faceup(m[c].first); faceup(m[c].second); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:11:16: error: 'faceup' was not declared in this scope
   11 |         a[i] = faceup(i);
      |                ^~~~~~
memory.cpp:25:9: error: 'faceup' was not declared in this scope
   25 |         faceup(m[c].first);
      |         ^~~~~~