online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <type_traits> #include <vector> #include <string> #include <functional> #include <map> #include <algorithm> #include <sstream> #include <set> #include <unordered_map> using namespace std; //class representing a Candidate info struct Candidate{ string engineType; string brand; int price; int range; }; int main() { //create an array witht element of type Candidate; Candidate arr[] = {{"IONIQ5", "Honda", 450, 3500}, {"Tesla_Model_3", "Tesla", 650, 55000}}; //iterate through the array using range based for loop for(const Candidate& candidate: arr) { std::cout<<candidate.range<<std::endl; } }

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