제출 #335590

#제출 시각아이디문제언어결과실행 시간메모리
335590JoshcMemory (IOI10_memory)C++11
컴파일 에러
0 ms0 KiB
#include <vector>
#include <cstdio>
using namespace std;
 
int main() {
  int c = getC();
  vector<int> x[26];
  for (int i=1; i<=50; i++) {
    x[faceup(i)-'A'+1].push_back(i);
  }
  for (int i=1; i<=25; i++) {
    faceup(x[i][0]);
    faceup(x[i][1]);
  }
}

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

memory.cpp: In function 'int main()':
memory.cpp:6:11: error: 'getC' was not declared in this scope; did you mean 'gets'?
    6 |   int c = getC();
      |           ^~~~
      |           gets
memory.cpp:9:7: error: 'faceup' was not declared in this scope
    9 |     x[faceup(i)-'A'+1].push_back(i);
      |       ^~~~~~
memory.cpp:12:5: error: 'faceup' was not declared in this scope
   12 |     faceup(x[i][0]);
      |     ^~~~~~
memory.cpp:6:7: warning: unused variable 'c' [-Wunused-variable]
    6 |   int c = getC();
      |       ^