fork download
  1. #include "testlib.h"
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4. string pans, jans;
  5. int main(int argc, char* argv[]) {
  6. registerTestlibCmd(argc, argv); int pp=0;
  7. pans = ouf.readToken(); jans = ans.readToken();
  8. if (pans == jans){printf("First line right +2\n"); pp+=2;}
  9. else printf("First line wrong\n");
  10. pans = ouf.readToken(); jans = ans.readToken();
  11. if (pans == jans){printf("Second line right +3\n"); pp+=3;}
  12. else printf("Second line wrong\n");
  13. pans = ouf.readToken(); jans = ans.readToken();
  14. if (pans == jans){printf("Third line right +5\n"); pp+=5;}
  15. else printf("Third line wrong\n");
  16.  
  17. if (pp==10) quitf(_ok, "- fully correct");
  18. else if (pp==0) quitf(_wa, "- fully wrong");
  19. else quitp(_pc(pp-16), "- %d / 10 points", pp);
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:10: fatal error: testlib.h: No such file or directory
 #include "testlib.h"
          ^~~~~~~~~~~
compilation terminated.
stdout
Standard output is empty