Those are compiler errors, not from the debugger.
Read up on file I/O: Input/Output with files - C++ Documentation
You'll find that you can't find the length of a stream and randomly access...