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 ce52e85 commit f099ea8Copy full SHA for f099ea8
exercises/practice/flower-field/.meta/example.cpp
@@ -41,12 +41,13 @@ std::vector<std::string> annotate(const std::vector<std::string>& garden) {
41
annotated += '*';
42
} else {
43
int score_number = score(garden, row, column);
44
- char score_char =
45
- (score_number == 0) ? ' ' : char(score_number) + '0';
+ char score_char = (score_number == 0)
+ ? ' '
46
+ : static_cast<char>(score_number) + '0';
47
annotated += score_char;
48
}
49
- annotation.emplace_back(annotated);
50
+ annotation.push_back(std::move(annotated));
51
52
return annotation;
53
0 commit comments