# 1번째 컴파일 단계
Anna.cpp:1:23: error: 'vector' has not been declared
1 | void Anna(int n,int k,vector<int> r,vector<int> c){
| ^~~~~~
Anna.cpp:1:29: error: expected ',' or '...' before '<' token
1 | void Anna(int n,int k,vector<int> r,vector<int> c){
| ^
Anna.cpp: In function 'void Anna(int, int, int)':
Anna.cpp:3:5: error: 'memset' was not declared in this scope
3 | memset(pos,0,sizeof(pos));
| ^~~~~~
Anna.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+++ |+#include <cstring>
1 | void Anna(int n,int k,vector<int> r,vector<int> c){
Anna.cpp:5:13: error: 'r' was not declared in this scope
5 | pos[r[i]%3][c[i]%3]=1;
| ^
Anna.cpp:5:21: error: 'c' was not declared in this scope
5 | pos[r[i]%3][c[i]%3]=1;
| ^
Anna.cpp:7:12: error: 'pair' was not declared in this scope
7 | vector<pair<int,int>> unuse;
| ^~~~
Anna.cpp:7:5: error: 'vector' was not declared in this scope
7 | vector<pair<int,int>> unuse;
| ^~~~~~
Anna.cpp:7:17: error: expected primary-expression before 'int'
7 | vector<pair<int,int>> unuse;
| ^~~
Anna.cpp:10:30: error: 'unuse' was not declared in this scope
10 | if(pos[i][j]==0&&unuse.size()<2){
| ^~~~~
Anna.cpp:21:12: error: 'unuse' was not declared in this scope
21 | if(unuse.back().first+dx[k]==unuse[0].first&&unuse.back().second+dy[k]==unuse[0].second){
| ^~~~~
Anna.cpp:22:13: error: 'swap' was not declared in this scope
22 | swap(unuse[0],unuse[1]);
| ^~~~
Anna.cpp:29:19: error: 'unuse' was not declared in this scope
29 | int x=unuse[0].first+i,y=unuse[0].second+j;
| ^~~~~
Anna.cpp:30:18: error: 'y' was not declared in this scope
30 | x%=3,y%=3;
| ^
Anna.cpp:34:25: error: 'SetFlag' was not declared in this scope
34 | SetFlag(a,b,12);
| ^~~~~~~
Anna.cpp:46:19: error: 'unuse' was not declared in this scope
46 | int x=unuse[0].first+i,y=unuse[0].second+j;
| ^~~~~
Anna.cpp:47:18: error: 'y' was not declared in this scope
47 | x%=3,y%=3;
| ^
Anna.cpp:53:30: error: 'r' was not declared in this scope
53 | if(abs(a-r[ptr])<=1&&abs(b-c[ptr])<=1){
| ^
Anna.cpp:53:24: error: 'abs' was not declared in this scope
53 | if(abs(a-r[ptr])<=1&&abs(b-c[ptr])<=1){
| ^~~
Anna.cpp:53:48: error: 'c' was not declared in this scope
53 | if(abs(a-r[ptr])<=1&&abs(b-c[ptr])<=1){
| ^
Anna.cpp:54:25: error: 'SetFlag' was not declared in this scope
54 | SetFlag(a,b,pos[r[ptr]%3][c[ptr]%3]);
| ^~~~~~~
Anna.cpp:71:25: error: 'SetFlag' was not declared in this scope
71 | SetFlag(a,b,val);
| ^~~~~~~