online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <string> #include <random> bool slucajni(){ std::random_device glasac; return (glasac() % 2); } int main() { std::cout << "Unesi ime potencijala: " << std::endl; std::string kandidat; std::cin >> kandidat; if(slucajni()) std::cout << "Ti i " << kandidat << " ste par." << std::endl; else std::cout << "Ti i " << kandidat << " ste antipar." << std::endl; return 0; }

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