- cout << "Sum of push: " << push_sum << "\n";
- cout << "Received sum:" << received_sum << "\n";
- cout << "overall_count:" << overall_count << "\n";
- cout << "push_count=" << push_count << "\n";
+ if (overall_count != push_count || received_sum != push_sum) {
+ cout << "Incorrect deque\n";
+ cout << "Push sum: " << push_sum << "\n";
+ cout << "Received sum:" << received_sum << "\n";
+ cout << "Push count=" << push_count << "\n";
+ cout << "Received count:" << overall_count << "\n";
+ }