Parse input for C++
Test case format are in standard.md
Windows, Mingw-w64
git clone git@github.com:EricMegalovania/Leetcode-Parser-Cpp.gitput leetcode_parser.hpp to somewhere like
PATH_TO_MINGW64_FOLDER\mingw64\lib\gcc\x86_64-w64-mingw32\11.5.0\include\c++\localSuggest to use along with cph !!!
Copy raw inputs to test cases, and you can test locally.
#include <bits/stdc++.h>
#include <local/leetcode_parser.hpp>
using namespace std;
using namespace leetcode_IOWrapper;
using LL = long long;
int main() {
auto [_string, _bool, vv_double, _ll] = read<string, bool, vector<vector<double>>, LL>();
write(_string, _bool, vv_double, _ll);
return 0;
}cd ./tests
g++ -O2 -std=c++20 main.cpp -o main
./mainoutput should be like sample_output
MIT License
