| Problem | smurf |
|---|---|
| User | piis314159 |
| Submission Time | 2025-11-13 21:40:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
smurf.cpp: In function ‘int main()’:
smurf.cpp:15:7: error: ‘cin’ is not a member of ‘std’
15 | std::cin >> N;
| ^~~
smurf.cpp:8:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
7 | #include <stack>
+++ |+#include <iostream>
8 |
smurf.cpp:20:8: error: ‘cin’ is not a member of ‘std’
20 | std::cin >> smurf[i];
| ^~~
smurf.cpp:20:8: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
smurf.cpp:29:8: error: ‘cout’ is not a member of ‘std’
29 | std::cout << sm[i] << " ";
| ^~~~
smurf.cpp:29:8: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?