Loading Playground...
an
HCL GUVI
product
๐
an
HCL GUVI
product
Choose a Job
Paths
Learn to code
Exams
Tech Blog
Blog
Guilds
Games
Fun Friday
โ๏ธ
Sign in
C Language
C++
C#
Java
DBMS
Python
Go Lang
Data Structures
Operating System
Computer Network
Git Guide
Linux
โ Code Courses
|
โก
StudyTonight Online Compiler
C
C++
Python
Java
Node.js
Reset
โถ
Execute Code
main.cpp
UTF-8
#include <iostream> #include <vector> #include <numeric> int main() { std::cout << "Welcome to StudyTonight C++ Compiler!\n"; std::vector<int> numbers = {10, 20, 30, 40, 50}; int sum = std::accumulate(numbers.begin(), numbers.end(), 0); std::cout << "Vector sum: " << sum << std::endl; return 0; }
Standard Input (stdin)
Execution Output
// Output will be displayed here after you click "Execute Code"...