online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <fstream> #include <sstream> #include <string> using namespace std; void testFile(const char *fileName) { fstream file(fileName, ios::in); string line, word; while (getline(file, line)) { istringstream checker_str(line); if (checker_str >> word && word == "ret") { cout << "Message: " << "\033[92msuccess: \033[0m" << "\"ret\" keyword was already written." << endl; return; } } //cout << "Message: " << "\033[93mwarning: \033[0m" << "\"ret\" keyword was not written." << endl; cout << "Message: " << "\033[93mwarning: \033[0m" << "\"ret\" keyword was not written and has been written for you." << endl; ofstream file1(fileName, ios::app); file1 << "\nret"; return; } int main(){ testFile("no_ret.txt"); testFile("Yes_Ret.txt"); return 0; }
def main(){ print("hello world"); int i = 0; }
def main(){ print("hello world"); int i = 0; } ret

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