fork download
  1. Case 1:
  2. { "01" "10" "10" }
  3. 1
  4.  
  5. Answer 1:
  6. 2
  7.  
  8. Case 2:
  9. { "aaa" "a" "aa" }
  10.  
  11. Answer 2:
  12. "aaaaaa"
  13.  
  14. Case 3:
  15. { 2 1 3 5 }
  16. { 2 1 3 5 }
  17. { 4 5 3 2 }
  18. { "NNNN" "NNNN" "NNNN" "NNNN" }
  19. 1000
  20.  
  21. Answer 3:
  22. 13000
  23.  
  24. Case 4:
  25. 2
  26. 2
  27.  
  28. Answer 4:
  29. 6
  30.  
  31. Case 5:
  32. "?????????,9"
  33.  
  34. Answer 5:
  35. "1,2,3,4,5,9"
  36.  
  37. Case 6:
  38. 8
  39. 8
  40. { 2 2 2 2 }
  41.  
  42. Answer 6:
  43. 394476764
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘Case’ does not name a type
prog.cpp:3:1: error: expected unqualified-id before numeric constant
prog.cpp:11:1: error: ‘Answer’ does not name a type
prog.cpp:16:2: error: expected unqualified-id before ‘{’ token
prog.cpp:17:2: error: expected unqualified-id before ‘{’ token
prog.cpp:18:2: error: expected unqualified-id before ‘{’ token
prog.cpp:19:1: error: expected unqualified-id before numeric constant
prog.cpp:42:1: error: ‘Answer’ does not name a type
stdout
Standard output is empty