prog.cpp:7:6: error: no member named 'vector' in namespace 'std'
std::vector<std::string> vec;
~~~~~^
prog.cpp:7:24: error: expected '(' for function-style cast or type construction
std::vector<std::string> vec;
~~~~~~~~~~~^
prog.cpp:7:26: error: use of undeclared identifier 'vec'
std::vector<std::string> vec;
^
prog.cpp:10:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
if(!F)
^
prog.cpp:10:4: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
if(!F)
^
prog.cpp:12:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
std::cout << "Il file non esiste!";
^
prog.cpp:12:4: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
std::cout << "Il file non esiste!";
^
prog.cpp:12:7: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
std::cout << "Il file non esiste!";
^
prog.cpp:12:10: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
std::cout << "Il file non esiste!";
^
prog.cpp:13:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
return -1;
^
prog.cpp:13:4: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
return -1;
^
prog.cpp:13:7: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
return -1;
^
prog.cpp:13:10: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
return -1;
^
prog.cpp:14:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
}
^
prog.cpp:14:4: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
}
^
prog.cpp:18:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
while(getline(F, S))
^
prog.cpp:18:4: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
while(getline(F, S))
^
prog.cpp:20:11: error: use of undeclared identifier 'vec'
vec.push_back(S);
^
prog.cpp:23:1: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
return 0;
^
prog.cpp:23:4: warning: treating Unicode character as whitespace [-Wunicode-whitespace]
return 0;
^
16 warnings and 4 errors generated.