# 2번째 컴파일 단계
decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:10:3: error: 'map' was not declared in this scope
10 | map<int,int> mp;
| ^~~
decoder.cpp:10:3: note: suggested alternatives:
In file included from /usr/include/c++/13/map:63,
from decoder.cpp:5:
/usr/include/c++/13/bits/stl_map.h:102:11: note: 'std::map'
102 | class map
| ^~~
/usr/include/c++/13/map:80:13: note: 'std::pmr::map'
80 | using map
| ^~~
decoder.cpp:10:7: error: expected primary-expression before 'int'
10 | map<int,int> mp;
| ^~~
decoder.cpp:12:9: error: 'mp' was not declared in this scope
12 | if(!mp.count(X[i])) mp[X[i]] = 0;
| ^~
decoder.cpp:13:5: error: 'mp' was not declared in this scope
13 | mp[X[i]]++;
| ^~
decoder.cpp:16:7: error: 'mp' was not declared in this scope
16 | if(!mp.count(0)) mp[0] = 0;
| ^~
decoder.cpp:17:13: error: 'mp' was not declared in this scope
17 | int cnt = mp[0];
| ^~