제출 #633807

#제출 시각아이디문제언어결과실행 시간메모리
633807ZflopMemory (IOI10_memory)C++14
컴파일 에러
0 ms0 KiB
#include "memory.h" #include "grader.h" #include <stdio.h> #include <stdlib.h> void play() { int i; char b; vector <set<int>> A(24); for(int i = 1; i <= 50;++i){ b = faceup(i); A[b - 'A'].ins(i); } for(auto& x:A){ faceup(*x.begin()); faceup(*x.rbegin()); } return; }

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

memory.cpp: In function 'void play()':
memory.cpp:9:4: error: 'vector' was not declared in this scope
    9 |    vector <set<int>> A(24);
      |    ^~~~~~
memory.cpp:9:12: error: 'set' was not declared in this scope
    9 |    vector <set<int>> A(24);
      |            ^~~
memory.cpp:9:16: error: expected primary-expression before 'int'
    9 |    vector <set<int>> A(24);
      |                ^~~
memory.cpp:12:5: error: 'A' was not declared in this scope
   12 |     A[b - 'A'].ins(i);
      |     ^
memory.cpp:14:14: error: 'A' was not declared in this scope
   14 |  for(auto& x:A){
      |              ^
memory.cpp:7:8: warning: unused variable 'i' [-Wunused-variable]
    7 |    int i;
      |        ^