제출 #1010518

#제출 시각아이디문제언어결과실행 시간메모리
1010518Muaath_5Memory (IOI10_memory)C++17
컴파일 에러
0 ms0 KiB
#include "memory.h" int faceup(int c); vector<int> cc[51]; void play() { for (int i = 1; i <= 50; i++) cc[faceup(i)].push_back(i); for (int i = 1; i <= 50; i++) faceup(cc[i][0], cc[i][1]); }

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

memory.cpp:5:1: error: 'vector' does not name a type
    5 | vector<int> cc[51];
      | ^~~~~~
memory.cpp: In function 'void play()':
memory.cpp:8:5: error: 'cc' was not declared in this scope
    8 |     cc[faceup(i)].push_back(i);
      |     ^~
memory.cpp:10:12: error: 'cc' was not declared in this scope
   10 |     faceup(cc[i][0], cc[i][1]);
      |            ^~