The reason is that the header file fstream was not added.
Add the
#include<fstream>
Read More:
- Error tips:array type has incomplete element type
- Error: global variable is ambiguous (conflict between using namespace STD and global variable)
- array type has an incomplete element type
- About the prompt: invalid use of incomplete type
- Caused by the “error string in namespace std does not name a type” error
- Error: (22,57) Java: type parameter… Mapper is not in the range of type variable M
- [Solved] RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat1‘
- error C2784: ‘bool std::operator <(const std::_Tre
- ERROR:expected initializer before “int”
- Global variable error: unboundlocalerror: local variable ‘l’ referenced before assignment
- java.lang.IllegalArgumentException: Index for header ‘XXX‘ is 1 but CSVRecord only has 1 value
- Solve the runtimeerror in RNN: expected scalar type long but found float error
- RuntimeError: expected scalar type Double but found Float
- Variable type error: error of array occurs when TP5 controller receives the array of post
- Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING
- Error c2011: “a certain class”: redefinition of “class” type
- /usr/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at “BOOST_JOIN”
- Registry key Error: Java version has value ‘1.8‘, but ‘1.7‘ is required
- Differences between shell script variable assignment and C language variable assignment