We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cdeab5 commit 5a96372Copy full SHA for 5a96372
2 files changed
.github/workflows/ci.yml
@@ -20,7 +20,7 @@ jobs:
20
- name: Install build tools
21
run: |
22
sudo apt-get update
23
- sudo apt-get install -y build-essential g++ clang clang-format
+ sudo apt-get install -y build-essential g++-14 clang clang-format
24
25
# 3. Clang-format check
26
- name: Clang-format Check
map-with-unknown-key/main.cpp
@@ -13,7 +13,7 @@ main()
13
std::map<std::string, int> my_map;
14
std::print("Accessing unknown key 'unknown_key' in std::map:\n");
15
int value = my_map["unknown_key"];
16
- std::print("Value: {}\n", value); // Should print 0, as default-constructed int is 0
+ std::print("Value: {}\n", value); // Should print 0, as default-constructed int is 0
17
std::print("Map size after access: {}\n", my_map.size()); // Should print 1
18
return 0;
19
}
0 commit comments