#include using namespace std; enum validation:int{ CORRECT = 42, WRONG_ANSWER = 43, JUDGE_ERROR = 1, }; enum answer:int{ INVALID = -1, IMPOSSIBLE = -2, }; int main(int argc, char** argv) { ifstream data(argv[1]); ifstream jury(argv[2]); istream &team=cin; if (argc==4){ freopen((string(argv[3]) + "/feedback.txt").c_str(), "w", stdout); } else if (argc!=3){ cerr<<"usage: "<>orig_n)){ cout<<"Unable to read input"<>a>>c>>b)){ cout<<"Unable to read input"<') swap(a,b); lt[a-'a'][b-'a']=true; } string orig_str; if (not (data>>orig_str)){ cout<<"Unable to read input"<>jury_answer)){ cout<<"Unable to read jury answer"<>team_answer)){ cout<<"Unable to read team answer"<> fl(26,{-1,-1}); for (int i=0; i=fl[j].first){ cout<<"Team has wrong order for letters "<<((char)(i+'a'))<<" < "<<((char)(j+'a'))<