Fixed zero initializers
This commit is contained in:
parent
ab21e8ad7d
commit
df8bddb55a
4 changed files with 14 additions and 10 deletions
|
|
@ -9,7 +9,7 @@ int main()
|
|||
{
|
||||
std::vector<int> depths = readToInt("../input/01.txt");
|
||||
|
||||
int increases = 0;
|
||||
int increases{};
|
||||
for(auto i = 0; i < depths.size() - 1; i++)
|
||||
increases += 1 * (depths[i] < depths[i+1]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue