/* -*- mode: c -*- */
/* $Id: cmp_sexpr.c 4049 2007-03-29 19:13:35Z cher $ */

/* Copyright (C) 2006-2007 Alexander Chernov <cher@ejudge.ru> */

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#define NEED_CORR 1
#include "checker.h"

int checker_main(int argc, char **argv)
{
  checker_sexpr_t user_ans = 0, corr_ans = 0;

  corr_ans = checker_read_sexpr(2);
  checker_corr_eof();
  user_ans = checker_read_sexpr(1);
  checker_out_eof();
  if (!checker_eq_sexpr(user_ans, corr_ans))
    fatal_WA("Answers do not match");
  checker_OK();
}
