online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <fstream> #include <vector> #include <algorithm> int main() { std::ifstream inputFile("input.txt"); //create vector that will contain the words in the file in lowercase std::vector<std::string> wordVec; std::string line; if(inputFile) { while(std::getline(inputFile, line, '\n')) { std::transform(line.begin(), line.end(), line.begin(), [](unsigned char c) { return std::tolower(c); }); wordVec.push_back(line); } } else { std::cout<<"file could not be opened"<<std::endl; } inputFile.close(); //lets print out the elements of the vector to check if elements are correctly stored in lowercase for(const std::string &elem: wordVec) { std::cout<<elem<<std::endl; } return 0; }
This IS THE FIRST LINE 2nd line IS THIS THIRD LINE IS VERY VERY LONG

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue