제출 #678660

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

컴파일 시 표준 에러 (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);
      |            ^~~~~~~~~~~~