Problem | nou |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-11 15:30:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nou.cpp: In function ‘int main()’:
nou.cpp:4:2: error: ‘string’ was not declared in this scope
4 | string s;
| ^~~~~~
nou.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | using namespace std;
nou.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin>>s;
| ^~~
nou.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
nou.cpp:6:7: error: ‘s’ was not declared in this scope
6 | cin>>s;
| ^
nou.cpp:12:2: error: ‘cout’ was not declared in this scope
12 | cout<<sum;
| ^~~~
nou.cpp:12:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?