Problem | reverse |
---|---|
User | potatoed78 |
Submission Time | 2025-06-18 09:24:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
reverse.cpp: In function ‘int main()’:
reverse.cpp:4:5: error: ‘ios_base’ has not been declared
4 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
reverse.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin.tie(0);
| ^~~
reverse.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
reverse.cpp:15:9: error: ‘cout’ was not declared in this scope
15 | cout << a[n-1-i] << ' ';
| ^~~~
reverse.cpp:15:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?