Skip to content

Fix parentheses_checker.cpp: remove <bits/stdc++.h>, support multi-line input, add comments (#8760)#8786

Open
prateekshukla0918 wants to merge 1 commit intofineanmol:masterfrom
prateekshukla0918:fix/parentheses-checker-update
Open

Fix parentheses_checker.cpp: remove <bits/stdc++.h>, support multi-line input, add comments (#8760)#8786
prateekshukla0918 wants to merge 1 commit intofineanmol:masterfrom
prateekshukla0918:fix/parentheses-checker-update

Conversation

@prateekshukla0918
Copy link

This PR fixes and improves the parentheses_checker.cpp file as discussed in issue #8760.

Changes made:

  • Replaced non-standard <bits/stdc++.h> with , ,
  • Added descriptive comments for clarity
  • Program now reads multiple lines until EOF
  • Removed unused commented-out vector test code
  • Improved input prompts for better usability
  • Reformatted code consistently

Tested locally using g++ -std=c++17 — working as expected.

Closes #8760

…ine input, add comments, and improve readability (fixes fineanmol#8760)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updating the parentheses_checker.cpp code

1 participant