Submission #678660

#TimeUsernameProblemLanguageResultExecution timeMemory
678660penguin133Memory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "memory.h" using namespace std; //#define int long long #define pi pair<int, int> #define pii pair<int, pi> #define fi first #define se second #ifdef _WIN32 #define getchar_unlocked _getchar_nolock #endif int X[505]; void play() { for(int i=1;i<=50;i++){ char x = faceup(i); X[i] = x - 'A'; } for(int i=0;i<26;i++){ for(int j=1;j<=50;j++){ if(X[j] == i){ char lmaolmaolmao = faceup(j); } } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:16:14: error: 'faceup' was not declared in this scope
   16 |     char x = faceup(i);
      |              ^~~~~~
memory.cpp:22:27: error: 'faceup' was not declared in this scope
   22 |       char lmaolmaolmao = faceup(j);
      |                           ^~~~~~
memory.cpp:22:12: warning: unused variable 'lmaolmaolmao' [-Wunused-variable]
   22 |       char lmaolmaolmao = faceup(j);
      |            ^~~~~~~~~~~~