Problem helloworld
User NoobMugger420
Submission Time 2024-12-16 03:59:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

helloworld.cpp: In function ‘int main()’:
helloworld.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> n >> m >> q;
| ^~~
helloworld.cpp:4:5: error: ‘vector’ was not declared in this scope
4 | vector<int> a(m);
| ^~~~~~
helloworld.cpp:4:12: error: expected primary-expression before ‘int’
4 | vector<int> a(m);
| ^~~
helloworld.cpp:5:13: error: ‘a’ was not declared in this scope
5 | for(auto &x:a) cin>>x; // take in input, you can use normal loops too
| ^
helloworld.cpp:6:10: error: ‘a’ was not declared in this scope
6 | sort(a.begin(), a.end());
| ^
helloworld.cpp:6:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
6 | sort(a.begin(), a.end());
| ^~~~
| short
helloworld.cpp:10:31: error: ‘all’ was not declared in this scope