hash_map<string, int> ์ฌ์ฉ์ ์ค๋ฅ๊ฐ ๋๋ค.
2011๋ ... hash_map<string, int> ์ฌ์ฉ์ ์ค๋ฅ๊ฐ ๋๋ค.
๊ตฌ๊ธ๋ง์ ํด์ ์ฌ๋ฌ๊ฐ์ง ๋ฐฉ์์ ์ฐพ์๋ด์ ํด๋ดค๋๋ฐ ๋ค ์์ฉ์์๊ณ ,
์ปดํ์ผ ์ต์ ๋ง ๋ฐ๊ฟ์ฃผ๋ฉด ๋๋ ๊ฑฐ ์๋ค.
hash_map์ด ์์ง ํ์ค์ด ์๋๋ผ์ ์ปดํ์ผ ํ ๋ ์ต์ ์ ๋ ๋ถ์ฌ์ค์ผ ํ๋ ๊ฑฐ์์... ใ .ใ
์ปดํ์ผํ ๋ ์๋ ๋์
g++ -g -o s s.cc
์๋์ฒ๋ผ ํ๋ฉด ๋๋ ๊ฑฐ์๋ค.
g++ -Wall -std=c++0x -o s s.cc
์ ๊ทธ๋ฌ๋ฉด ์ด๋ฐ ์ค๋ฅ๊ฐ ๋๋ค.
/usr/include/c++/4.4/c++0x_warning.h:31:2 error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c_\++0x or -std=gnu++0x compiler options.
error: expected constructor, destructor, or type conversion before '<' token
๊ตฌ๊ธ๋ง์ ์์กดํ๋ค๋ณด๋ ์ ์ ์ฒซ๋ฒ์งธ ๋ฌธ์ฅ๋ง ์ฝ์์ด๋ ํด๊ฒฐ๋ ๋ด์ฉ์ ํ์๊ฐ์ด๋ ์ฐพ์ํค๋งธ๋ค.
๋ ์๊ธด ๊ฑด ๊ตฌ๊ธ๋ง ๊ฒฐ๊ณผ์ ๋ฐฉ๋ฒ๋ค์ด ์์ ๊ฐ์ด ์ปดํ์ผ๋ฌ ์ต์ ๋ฐ๊พธ๋๊ฒ ์๋๋ผ STL ํ ํ๋ฆฟ์ ์์ ํ๊ฑฐ๋ ํ๋ ๊ฒ๋ค์ด์์. ใ ใ ใ