https://github.com/bisakhmondal/cpp_soln_checker
https://github.com/bisakhmondal/cpp_soln_checker
checker cp cpp script
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bisakhmondal/cpp_soln_checker
- Owner: bisakhmondal
- License: mit
- Created: 2020-03-29T11:22:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-29T11:44:06.000Z (almost 6 years ago)
- Last Synced: 2025-01-21T07:25:13.050Z (about 1 year ago)
- Topics: checker, cp, cpp, script
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Project Name: cpp_soln_checker
This is useful to various online judge problem submission, for checking program output with the given output.
steps:
1.create `in` & `out` file in any directory.
2.add the directory name (`Dir` variable) in script.
3.`source` the script.
(use it on the current terminal)
4.copy inputs & outputs of the current program in `in` & `out` files respectively. It will check automatically and either give success or throw error
using guide
```bash
$ compile .cpp
```
if you want to compile with sanitizers use
using guide
```bash
$ compile .cpp 1
```
To use it permanently across all terminals add these lines in your `~/.bashrc` at the end.
```bash
if [[ -f //compile ]];then
source //compile
fi
```
-Bisakh