std.check.strings: src/check_strings.cpp
#include "Check"
using namespace std;
using namespace Check;
const size_t DefaultLength = 4096;
int main(int argc, char *argv[])
{
init(argc, argv);
string line;
size_t count = 1;
line.reserve(DefaultLength);
try
{
while (answer)
{
answer.getLine(line).peek();
output >> ensureLine(line);
++count;
}
}
catch (const UnhopedDataError &error)
{
exit(WrongAnswer, "%s at line %d", error.message().c_str(), count);
}
quit(SolutionAccepted);
}