0_0_39382882_23990.cpp:3:6: error: variable or field 'calculate' declared void
3 | void calculate(string str)
| ^~~~~~~~~
0_0_39382882_23990.cpp:3:16: error: 'string' was not declared in this scope
3 | void calculate(string str)
| ^~~~~~
0_0_39382882_23990.cpp:2:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
1 | #include <string.h>
+++ |+#include <string>
2 | using namespace std;
0_0_39382882_23990.cpp: In function 'int main()':
0_0_39382882_23990.cpp:62:4: error: 'string' was not declared in this scope
62 | string str;
| ^~~~~~
0_0_39382882_23990.cpp:62:4: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
0_0_39382882_23990.cpp:63:20: error: 'cin' was not declared in this scope
63 | while (getline(cin, str)) // ???????????
| ^~~
0_0_39382882_23990.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <string.h>
+++ |+#include <iostream>
2 | using namespace std;
0_0_39382882_23990.cpp:63:25: error: 'str' was not declared in this scope; did you mean 'std'?
63 | while (getline(cin, str)) // ???????????
| ^~~
| std
0_0_39382882_23990.cpp:63:12: error: 'getline' was not declared in this scope
63 | while (getline(cin, str)) // ???????????
| ^~~~~~~
0_0_39382882_23990.cpp:67:9: error: 'calculate' was not declared in this scope
67 | calculate(str);
| ^~~~~~~~~
|