icmp.cpp 374 B

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