C:\Users\DELL\Desktop\团体队列 Team Queue.cpp In function 'int main()':
9 9 C:\Users\DELL\Desktop\团体队列 Team Queue.cpp [Error] 'unordered_map' was not declared in this scope
9 23 C:\Users\DELL\Desktop\团体队列 Team Queue.cpp [Error] expected primary-expression before 'int'
9 23 C:\Users\DELL\Desktop\团体队列 Team Queue.cpp [Error] expected ';' before 'int'
15 13 C:\Users\DELL\Desktop\团体队列 Team Queue.cpp [Error] 'teamMap' was not declared in this scope
26 28 C:\Users\DELL\Desktop\团体队列 Team Queue.cpp [Error] 'teamMap' was not declared in this scope
by bjqxszx_zhongqide @ 2024-04-16 16:27:14
@[bjqxszx_zhongqide](/user/1013002) `unordered_map` 要开 C++11。
如果你用的 Dev,到 工具 $\rightarrow$ 编译选项里面加上 `-std=c++11` 并且打上勾就可以。
by FFTotoro @ 2024-04-16 16:33:30
解决了谢谢
by bjqxszx_zhongqide @ 2024-04-16 16:42:04