fork download
  1. #include "testlib.h"
  2. #include <bits/stdc++.h>
  3.  
  4. using namespace std;
  5. typedef long long ll;
  6.  
  7.  
  8. int main(int argc, char* argv[]) {
  9.  
  10.  
  11. registerValidation(argc, argv);
  12.  
  13. int Q = inf.readInt(1, 200000, "Q"); inf.readEoln();
  14.  
  15. for(int query = 1;query<=Q; query++) {
  16.  
  17. // version 1
  18. //string cmd = inf.readToken("QUERY1|QUERY2|QUERY3|QUERY4|QUERY5|QUERY6|QUERY7|QUERY8|QUERY9|QUERY10");
  19.  
  20. // version 2
  21. string cmd = inf.readToken();
  22. ensuref(!(cmd != "QUERY1" && cmd != "QUERY2" && cmd != "QUERY3" && cmd != "QUERY4" && cmd != "QUERY5"
  23. && cmd != "QUERY6" && cmd != "QUERY7" && cmd != "QUERY8" && cmd != "QUERY9" && cmd != "QUERY10"), "cmd must be valid input");
  24.  
  25. if(cmd == "QUERY1") {
  26. inf.readSpace();
  27. string UU = inf.readToken("[A-Z]{1,10}", "U");
  28. inf.readSpace();
  29. ll L = inf.readLong(1, 1000000000000LL, "L");
  30.  
  31. }
  32. inf.readEoln();
  33. }
  34.  
  35. inf.readEof();
  36. }
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