Problem | veryeasyproblem |
---|---|
User | zhangdi |
Submission Time | 2025-10-04 10:26:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
veryeasyproblem.cpp: In function ‘int main()’:
veryeasyproblem.cpp:3:19: error: ‘cin’ was not declared in this scope
3 | int main(){int n; cin>>n; cout<<n;}
| ^~~
veryeasyproblem.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <stdio.h>
+++ |+#include <iostream>
2 | using namespace std;
veryeasyproblem.cpp:3:27: error: ‘cout’ was not declared in this scope
3 | int main(){int n; cin>>n; cout<<n;}
| ^~~~
veryeasyproblem.cpp:3:27: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?