Problem yaleuniversity
User Elwinthenerd
Submission Time 2024-11-02 15:50:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

yaleuniversity.cpp: In function ‘int main()’:
yaleuniversity.cpp:5:5: error: ‘ios_base’ has not been declared
5 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
yaleuniversity.cpp:6:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin.tie(NULL);
| ^~~
| std::cin
In file included from yaleuniversity.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
yaleuniversity.cpp:9:5: error: ‘unordered_map’ was not declared in this scope
9 | unordered_map<string, int> word_count;
| ^~~~~~~~~~~~~
yaleuniversity.cpp:9:5: note: suggested alternatives:
In file included from /usr/include/c++/9/unordered_map:47,
from yaleuniversity.cpp:2:
/usr/include/c++/9/bits/unordered_map.h:102:11: note: ‘std::unordered_map’
102 | cl