Skip to content

6.1.0 - Testlib Checker

Compare
Choose a tag to compare
@gi-b716 gi-b716 released this 16 Nov 15:55
· 9 commits to master since this release
6.1.0
dc9b7c0

Checker Example:

#include "testlib.h"
#include <cmath>

int main(int argc, char *argv[])
{
	registerTestlibCmd(argc, argv);
	int pans = ans.readInt(), pout = ouf.readInt();
	if (pans == abs(pout)) {
		quitf(_ok, "The answer is correct.");
	}
	else {
		quitf(_wa, "The answer is wrong: expected = %d, fount = %d.", pans, pout);
	}
	return 0;
}

Full Changelog: 6.0.0...6.1.0