MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / main

Function main

data/cpp/00_basics.cpp:5–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <algorithm>
4
5int main() {
6 std::string name = "KeyZen";
7 int score = 0;
8
9 for (int i = 0; i < 3; i++) {
10 score += 10;
11 std::cout << "round " << i + 1 << ": score = " << score << "\n";
12 }
13
14 std::vector<int> nums = {3, 1, 4, 1, 5, 9};
15 std::sort(nums.begin(), nums.end());
16
17 for (int n : nums) {
18 std::cout << n << " ";
19 }
20 std::cout << "\n";
21 std::cout << "Hello from " << name << "!\n";
22 return 0;
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected