Skip to content

Commit 0342663

Browse files
committed
fix some shortcomings
1 parent 955f0eb commit 0342663

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

task_02/src/stack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void MinStack::Push(int value) {
4040

4141
int MinStack::Pop() {
4242
if (st1_.top == nullptr) {
43-
throw std::logic_error("Stack Underflow");
43+
throw std::logic_error("Out_of_range");
4444
}
4545

4646
int val = st1_.top->value;

task_03/src/topology_sort.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class Day {
88
public:
99
int number_of_day;
1010
int temperature;
11-
Day(int number_of_day, int temperature) : number_of_day(number_of_day), temperature(temperature) {}
11+
Day(int number_of_day, int temperature)
12+
: number_of_day(number_of_day), temperature(temperature) {}
1213
};
1314

1415
std::vector<int> RiseTemperature(std::vector<int> vec) {

0 commit comments

Comments
 (0)