Advertisement
CooBin

checkerThemis

Dec 5th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. int main(int argc, const char * argv[]) {
  2.     // Read Input
  3.    
  4.     //string inp(argv[1]);
  5.     //string out(argv[2]);
  6.     //string ans(argv[3]);
  7.     string spath="";
  8.     getline(cin,spath);
  9.     string inp = spath + "CITY.INP";
  10.     string out = spath + "CITY.OUT";
  11.    
  12.     getline(cin,spath);
  13.     string ans = spath + "CITY.OUT";
  14.  
  15.     makeHMAP();
  16.     //cerr<<idx[8]<<" "<<idy[8]<<endl;
  17.     //cerr<<idx[2]<<" "<<idy[2]<<endl;
  18.     //cerr<<HMAP[53][54]<<endl;
  19.     //cerr<<HMAP[54][55]<<endl;
  20.    
  21.     int result = Check(inp, out, ans);
  22.    
  23.     if (result == 1) {
  24.         cerr << errmsg << endl;
  25.         cout << "1.0" << endl;
  26.     }
  27.     else
  28.         {
  29.         cerr << errmsg << endl;
  30.         cout << "0.0" << endl;
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement