Problem topical
User ptpopo
Submission Time 2024-02-21 19:50:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topical.cpp: In function ‘int main()’:
topical.cpp:6:10: error: ‘cin’ is not a member of ‘std’
6 | std::cin >> n >> k;
| ^~~
topical.cpp:3:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <algorithm>
+++ |+#include <iostream>
3 |
topical.cpp:14:18: error: ‘cin’ is not a member of ‘std’
14 | std::cin >> new_values[j];
| ^~~
topical.cpp:14:18: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
topical.cpp:22:18: error: ‘cin’ is not a member of ‘std’
22 | std::cin >> new_values[j];
| ^~~
topical.cpp:22:18: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
topical.cpp:63:10: error: ‘cout’ is not a member of ‘std’
63