icmp.cpp 340 B

1234567891011121314
  1. #include "testlib.h"
  2. int main(int argc, char *argv[]) {
  3. setName("compare two signed int%d's", 8 * int(sizeof(int)));
  4. registerTestlibCmd(argc, argv);
  5. int ja = ans.readInt();
  6. int pa = ouf.readInt();
  7. if (ja != pa)
  8. quitf(_wa, "expected %d, found %d", ja, pa);
  9. quitf(_ok, "answer is %d", ja);
  10. }