제출 #1267523

#제출 시각아이디문제언어결과실행 시간메모리
1267523ti24dung_ntMemory (IOI10_memory)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define fi first #define se second #define file(name) if(fopen(name".inp", "r")) {freopen(name".inp", "r", stdin); freopen(name".out", "w", stdout);} #include<memory.h> void play() { int couple[25]; for(int i = 0; i < 25; ++i) couple[i] = -1; for(int i = 1; i <= 50; ++i) { char c; c = faceup(i); int base = int(c) - 'A'; if(couple[base] > -1) faceup(couple[base]); else couple[base] = i; } }

컴파일 시 표준 에러 (stderr) 메시지

memory.cpp: In function 'void play()':
memory.cpp:19:13: error: 'faceup' was not declared in this scope
   19 |         c = faceup(i);
      |             ^~~~~~