Detalii evaluare #49106056

Rezumat problemă

Fie n un număr natural nenul și mulțimea A={1,2,3,...,n}.

Să se afişeze toate partițiile disjuncte ale mulțimii A într-un timp eficient folosind memoria eficient.

Problemă luată de la Carmen Minca, modificată puțin

Detalii

Problema PartitiiMultime2 Operații I/O partitiimultime2.in/partitiimultime2.out
Limita timp 0.12 secunde Limita memorie Total: 0.1 MB / Stivă 0.1 MB
Id soluție #49106056 Utilizator Crudu Dănuț Alexandru (crudu_danut)
Fișier partitiimultime2.cpp Dimensiune 4.97 KB
Data încărcării 15 Februarie 2024, 12:30 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

partitiimultime2.cpp:9:1: error: stray '\342' in program
 1. f4 g5 2. fxg5 d5 {I don’t want to scare you, but the last person to beat me

 ^
partitiimultime2.cpp:9:1: error: stray '\200' in program
partitiimultime2.cpp:9:1: error: stray '\231' in program
partitiimultime2.cpp:10:1: error: stray '\342' in program
 was magically turned into a sheep…} 3. d3 c5 {…I doubt that will happen to you.

 ^
partitiimultime2.cpp:10:1: error: stray '\200' in program
partitiimultime2.cpp:10:1: error: stray '\246' in program
partitiimultime2.cpp:10:1: error: stray '\342' in program
partitiimultime2.cpp:10:1: error: stray '\200' in program
partitiimultime2.cpp:10:1: error: stray '\246' in program
partitiimultime2.cpp:11:1: error: stray '\342' in program
 Ha…} 4. e3 {Ah yes, keep moving your little minions.} 4... h6 5. Nc3 {I see

 ^
partitiimultime2.cpp:11:1: error: stray '\200' in program
partitiimultime2.cpp:11:1: error: stray '\246' in program
partitiimultime2.cpp:11:57: error: too many decimal points in number
 Ha…} 4. e3 {Ah yes, keep moving your little minions.} 4... h6 5. Nc3 {I see

                                                         ^
partitiimultime2.cpp:12:1: error: stray '\342' in program
 you’re well-versed in knight magic as well.} 5... Qd6 6. gxh6 {I don’t like

 ^
partitiimultime2.cpp:12:1: error: stray '\200' in program
partitiimultime2.cpp:12:1: error: stray '\231' in program
partitiimultime2.cpp:12:48: error: too many decimal points in number
 you’re well-versed in knight magic as well.} 5... Qd6 6. gxh6 {I don’t like

                                                ^
partitiimultime2.cpp:12:1: error: stray '\342' in program
 you’re well-versed in knight magic as well.} 5... Qd6 6. gxh6 {I don’t like

 ^
partitiimultime2.cpp:12:1: error: stray '\200' in program
partitiimultime2.cpp:12:1: error: stray '\231' in program
partitiimultime2.cpp:13:8: error: too many decimal points in number
 that.} 6... Bxh6 {Another piece I can use for a spell.} 7. Nf3 {I couldn’t have

        ^
partitiimultime2.cpp:13:1: error: stray '\342' in program
 that.} 6... Bxh6 {Another piece I can use for a spell.} 7. Nf3 {I couldn’t have

 ^
partitiimultime2.cpp:13:1: error: stray '\200' in program
partitiimultime2.cpp:13:1: error: stray '\231' in program
partitiimultime2.cpp:14:31: error: too many decimal points in number
 picked a better move myself.} 7... d4 {I am planning nothing with that move.

                               ^
partitiimultime2.cpp:15:1: error: stray '\342' in program
 Ignore it.} 8. exd4 {That’s a shame.} 8... cxd4 9. Ne4 {Running away $2} 9... Qb6

 ^
partitiimultime2.cpp:15:1: error: stray '\200' in program
partitiimultime2.cpp:15:1: error: stray '\231' in program
partitiimultime2.cpp:15:41: error: too many decimal points in number
 Ignore it.} 8. exd4 {That’s a shame.} 8... cxd4 9. Ne4 {Running away $2} 9... Qb6

                                         ^
partitiimultime2.cpp:15:76: error: too many decimal points in number
 Ignore it.} 8. exd4 {That’s a shame.} 8... cxd4 9. Ne4 {Running away $2} 9... Qb6

                                                                            ^
partitiimultime2.cpp:16:76: error: too many decimal points in number
 {A temporary retreat, I assure you.} 10. Bxh6 {I needed that for a spell.} 10...

                                                                            ^
partitiimultime2.cpp:17:1: error: stray '\342' in program
 Nxh6 {I’ll take that. Ha…ha…} 11. Nfg5 Ng4 {You will make a bad move…you must

 ^
partitiimultime2.cpp:17:1: error: stray '\200' in program
partitiimultime2.cpp:17:1: error: stray '\231' in program
partitiimultime2.cpp:17:1: error: stray '\342' in program
partitiimultime2.cpp:17:1: error: stray '\200' in program
partitiimultime2.cpp:17:1: error: stray '\246' in program
partitiimultime2.cpp:17:1: error: stray '\342' in program
partitiimultime2.cpp:17:1: error: stray '\200' in program
partitiimultime2.cpp:17:1: error: stray '\246' in program
partitiimultime2.cpp:17:1: error: stray '\342' in program
partitiimultime2.cpp:17:1: error: stray '\200' in program
partitiimultime2.cpp:17:1: error: stray '\246' in program
partitiimultime2.cpp:19:8: error: too many decimal points in number
 them.} 12... Ne3 {That move’s worth its weight in gold.} 13. Qf3 {…yes…that’s an

        ^
partitiimultime2.cpp:19:1: error: stray '\342' in program
 them.} 12... Ne3 {That move’s worth its weight in gold.} 13. Qf3 {…yes…that’s an

 ^
partitiimultime2.cpp:19:1: error: stray '\200' in program
partitiimultime2.cpp:19:1: error: stray '\231' in program
partitiimultime2.cpp:19:1: error: stray '\342' in program
partitiimultime2.cpp:19:1: error: stray '\200' in program
partitiimultime2.cpp:19:1: error: stray '\246' in program
partitiimultime2.cpp:19:1: error: stray '\342' in program
partitiimultime2.cpp:19:1: error: stray '\200' in program
partitiimultime2.cpp:19:1: error: stray '\246' in program
partitiimultime2.cpp:19:1: error: stray '\342' in program
partitiimultime2.cpp:19:1: error: stray '\200' in program
partitiimultime2.cpp:19:1: error: stray '\231' in program
partitiimultime2.cpp:20:1: error: stray '\342' in program
 interesting queen move…} 13... f6 {What do you think of that $2} 14. Nxf6+ {Take a

 ^
partitiimultime2.cpp:20:1: error: stray '\200' in program
partitiimultime2.cpp:20:1: error: stray '\246' in program
partitiimultime2.cpp:20:28: error: too many decimal points in number
 interesting queen move…} 13... f6 {What do you think of that $2} 14. Nxf6+ {Take a

                            ^
partitiimultime2.cpp:21:1: error: stray '\342' in program
 page out of Sir Arthur’s book and play nice.} 14... Qxf6 {Obviously.} 15. Qxf6

 ^
partitiimultime2.cpp:21:1: error: stray '\200' in program
partitiimultime2.cpp:21:1: error: stray '\231' in program
partitiimultime2.cpp:21:49: error: too many decimal points in number
 page out of Sir Arthur’s book and play nice.} 14... Qxf6 {Obviously.} 15. Qxf6

                                                 ^
partitiimultime2.cpp:22:46: error: too many decimal points in number
 {I wish I had a scroll to review this game.} 15... exf6 {You’ll need to

                                              ^
partitiimultime2.cpp:22:1: error: stray '\342' in program
 {I wish I had a scroll to review this game.} 15... exf6 {You’ll need to

 ^
partitiimultime2.cpp:22:1: error: stray '\200' in program
partitiimultime2.cpp:22:1: error: stray '\231' in program
partitiimultime2.cpp:24:1: error: too many decimal points in number
 16... Nxc2+ {Takes.} 17. Kd2 {You’re quite the escape artist.} 17... Nxa1 18.

 ^
partitiimultime2.cpp:24:1: error: stray '\342' in program
partitiimultime2.cpp:24:1: error: stray '\200' in program
partitiimultime2.cpp:24:1: error: stray '\231' in program
partitiimultime2.cpp:24:66: error: too many decimal points in number
 16... Nxc2+ {Takes.} 17. Kd2 {You’re quite the escape artist.} 17... Nxa1 18.

                                                                  ^
partitiimultime2.cpp:25:1: error: stray '\342' in program
 Be2 {I’ll make that bishop disappear soon enough.} 18... f5 {One of these days,

 ^
partitiimultime2.cpp:25:1: error: stray '\200' in program
partitiimultime2.cpp:25:1: error: stray '\231' in program
partitiimultime2.cpp:25:54: error: too many decimal points in number
 Be2 {I’ll make that bishop disappear soon enough.} 18... f5 {One of these days,

                                                      ^
partitiimultime2.cpp:26:1: error: stray '\342' in program
 I’ll transform a pawn into something dangerous.} 19. Nf6+ {HEY $1} 19... Ke7 {Just

 ^
partitiimultime2.cpp:26:1: error: stray '\200' in program
partitiimultime2.cpp:26:1: error: stray '\231' in program
partitiimultime2.cpp:26:70: error: too many decimal points in number
 I’ll transform a pawn into something dangerous.} 19. Nf6+ {HEY $1} 19... Ke7 {Just

                                                                      ^
partitiimultime2.cpp:28:34: error: too many decimal points in number
 looks like a strong move to me.} 20... Kd6 {My precious king $1} 21. Bf3 {Tricky

                                  ^
partitiimultime2.cpp:29:10: error: too many decimal points in number
 tricky.} 21... Nd7 {My knight $2 Magic $2 No, they can all move like this.} 22. Rxa1

          ^
partitiimultime2.cpp:30:72: error: too many decimal points in number
 {I would rather you play on Kingdom Chess than keep taking my pieces.} 22... Ne5

                                                                        ^
partitiimultime2.cpp:31:1: error: stray '\342' in program
 {I can’t conjure a better move than that.} 23. Nf4 Nxf3+ 24. gxf3 {That was one

 ^
partitiimultime2.cpp:31:1: error: stray '\200' in program
partitiimultime2.cpp:31:1: error: stray '\231' in program
partitiimultime2.cpp:32:37: error: too many decimal points in number
 of my more magical jumping pieces.} 24... Ke5 {Okay, maybe I have turned an

                                     ^
partitiimultime2.cpp:34:12: error: too many decimal points in number
 strength.} 25... Kf6 {I can escape anything.} 26. Nxh8 {I turned your rook into

            ^
partitiimultime2.cpp:35:39: error: too many decimal points in number
 dust $1 What do you think of that $2} 26... Bd7 {Careful, I’ve invaded kingdoms

                                       ^
partitiimultime2.cpp:35:1: error: stray '\342' in program
 dust $1 What do you think of that $2} 26... Bd7 {Careful, I’ve invaded kingdoms

 ^
partitiimultime2.cpp:35:1: error: stray '\200' in program
partitiimultime2.cpp:35:1: error: stray '\231' in program
partitiimultime2.cpp:37:21: error: too many decimal points in number
 making good moves.} 28... Be6 {Do you believe in magic $2} 29. f4 {A footsoldier.}

                     ^
partitiimultime2.cpp:38:1: error: too many decimal points in number
 29... Rc8 30. b3 Bd5 31. Ke2 Rc2+ {I’ve got a level 4 Castle in Kingdom Chess.

 ^
partitiimultime2.cpp:38:1: error: stray '\342' in program
partitiimultime2.cpp:38:1: error: stray '\200' in program
partitiimultime2.cpp:38:1: error: stray '\231' in program
partitiimultime2.cpp:39:1: error: stray '\342' in program
 What about you $2} 32. Kd1 {Hmm…if only I could consult the scrolls.} 32... Rxa2

 ^
partitiimultime2.cpp:39:1: error: stray '\200' in program
partitiimultime2.cpp:39:1: error: stray '\246' in program
partitiimultime2.cpp:39:73: error: too many decimal points in number
 What about you $2} 32. Kd1 {Hmm…if only I could consult the scrolls.} 32... Rxa2

                                                                         ^
partitiimultime2.cpp:40:1: error: stray '\342' in program
 {Don’t pay attention to the move I just made.} 33. Kc1 a5 34. Kb1 Rf2 {I learned

 ^
partitiimultime2.cpp:40:1: error: stray '\200' in program
partitiimultime2.cpp:40:1: error: stray '\231' in program
partitiimultime2.cpp:42:1: error: too many decimal points in number
 35... b5 36. Rh3 {I see. Yes.} 36... Kg7 37. h5 Bxb3 {I need to capture all 8

 ^
partitiimultime2.cpp:42:32: error: too many decimal points in number
 35... b5 36. Rh3 {I see. Yes.} 36... Kg7 37. h5 Bxb3 {I need to capture all 8

                                ^
partitiimultime2.cpp:43:1: error: stray '\342' in program
 pawns for a potion I’m working on.} 38. h6+ Kh7 {If there were gems in this

 ^
partitiimultime2.cpp:43:1: error: stray '\200' in program
partitiimultime2.cpp:43:1: error: stray '\231' in program
partitiimultime2.cpp:44:1: error: stray '\342' in program
 game, I’d get them for a move like that.} 39. Kc1 Rc2+ {Errant knights are so

 ^
partitiimultime2.cpp:44:1: error: stray '\200' in program
partitiimultime2.cpp:44:1: error: stray '\231' in program
partitiimultime2.cpp:46:1: error: too many decimal points in number
 40... Rf2 41. Kc1 Ba2 42. Rh5 {What trickery is afoot $2} 42... Be6 {You are

 ^
partitiimultime2.cpp:46:59: error: too many decimal points in number
 40... Rf2 41. Kc1 Ba2 42. Rh5 {What trickery is afoot $2} 42... Be6 {You are

                                                           ^
partitiimultime2.cpp:47:1: error: stray '\342' in program
 strong, I will give you that.} 43. Rh4 b4 {The last three knights I’ve played

 ^
partitiimultime2.cpp:47:1: error: stray '\200' in program
partitiimultime2.cpp:47:1: error: stray '\231' in program
partitiimultime2.cpp:48:1: error: stray '\342' in program
 have all turned into chickens afterwards. Scared $2} 44. Kb1 Ba2+ {It’s only a

 ^
partitiimultime2.cpp:48:1: error: stray '\200' in program
partitiimultime2.cpp:48:1: error: stray '\231' in program
partitiimultime2.cpp:50:9: error: too many decimal points in number
 Bravo.} 45... Bg8 {It’s been quiet for a while…} 46. Rh5 Ra2+ 47. Kb1

         ^
partitiimultime2.cpp:50:1: error: stray '\342' in program
 Bravo.} 45... Bg8 {It’s been quiet for a while…} 46. Rh5 Ra2+ 47. Kb1

 ^
partitiimultime2.cpp:50:1: error: stray '\200' in program
partitiimultime2.cpp:50:1: error: stray '\231' in program
partitiimultime2.cpp:50:1: error: stray '\342' in program
partitiimultime2.cpp:50:1: error: stray '\200' in program
partitiimultime2.cpp:50:1: error: stray '\246' in program
partitiimultime2.cpp:51:24: error: too many decimal points in number
 {Uncomfortable yet $2} 47... Rd2 {I don’t envy you. Ha…ha…ha…} 48. Kc1 Ra2 49. Kb1

                        ^
partitiimultime2.cpp:51:1: error: stray '\342' in program
 {Uncomfortable yet $2} 47... Rd2 {I don’t envy you. Ha…ha…ha…} 48. Kc1 Ra2 49. Kb1

 ^
partitiimultime2.cpp:51:1: error: stray '\200' in program
partitiimultime2.cpp:51:1: error: stray '\231' in program
partitiimultime2.cpp:51:1: error: stray '\342' in program
partitiimultime2.cpp:51:1: error: stray '\200' in program
partitiimultime2.cpp:51:1: error: stray '\246' in program
partitiimultime2.cpp:51:1: error: stray '\342' in program
partitiimultime2.cpp:51:1: error: stray '\200' in program
partitiimultime2.cpp:51:1: error: stray '\246' in program
partitiimultime2.cpp:51:1: error: stray '\342' in program
partitiimultime2.cpp:51:1: error: stray '\200' in program
partitiimultime2.cpp:51:1: error: stray '\246' in program
partitiimultime2.cpp:53:1: error: stray '\342' in program
 {Don’t pay attention to my last move. It’s great, I assure you.} 53. Rh3 Rf3 54.

 ^
partitiimultime2.cpp:53:1: error: stray '\200' in program
partitiimultime2.cpp:53:1: error: stray '\231' in program
partitiimultime2.cpp:53:1: error: stray '\342' in program
partitiimultime2.cpp:53:1: error: stray '\200' in program
partitiimultime2.cpp:53:1: error: stray '\231' in program
partitiimultime2.cpp:54:1: error: stray '\342' in program
 Rh2 a4 55. h7 Rf1+ 56. Kb2 a3+ 57. Kc2 a2 {Baronesses don’t blunder.} 58. h8=Q

 ^
partitiimultime2.cpp:54:1: error: stray '\200' in program
partitiimultime2.cpp:54:1: error: stray '\231' in program
partitiimultime2.cpp:55:1: error: stray '\342' in program
 {…I see.} 58... a1=Q {Let me show you what real power looks like.} 59. Qh7+

 ^
partitiimultime2.cpp:55:1: error: stray '\200' in program
partitiimultime2.cpp:55:1: error: stray '\246' in program
partitiimultime2.cpp:55:13: error: too many decimal points in number
 {…I see.} 58... a1=Q {Let me show you what real power looks like.} 59. Qh7+

             ^
partitiimultime2.cpp:56:59: error: too many decimal points in number
 {That is a very powerful piece. I must watch out for it.} 59... Kf6 {You are

                                                           ^
partitiimultime2.cpp:57:1: error: stray '\342' in program
 cramping my style.} 60. Qh8+ {…yes…I see your point…} 60... Ke7 {Let me show you

 ^
partitiimultime2.cpp:57:1: error: stray '\200' in program
partitiimultime2.cpp:57:1: error: stray '\246' in program
partitiimultime2.cpp:57:1: error: stray '\342' in program
partitiimultime2.cpp:57:1: error: stray '\200' in program
partitiimultime2.cpp:57:1: error: stray '\246' in program
partitiimultime2.cpp:57:1: error: stray '\342' in program
partitiimultime2.cpp:57:1: error: stray '\200' in program
partitiimultime2.cpp:57:1: error: stray '\246' in program
partitiimultime2.cpp:57:61: error: too many decimal points in number
 cramping my style.} 60. Qh8+ {…yes…I see your point…} 60... Ke7 {Let me show you

                                                             ^
partitiimultime2.cpp:58:1: error: stray '\342' in program
 what real power looks like.} 61. Qh7+ Kd6 {What $2 There’s nothing wrong with that

 ^
partitiimultime2.cpp:58:1: error: stray '\200' in program
partitiimultime2.cpp:58:1: error: stray '\231' in program
partitiimultime2.cpp:60:48: error: too many decimal points in number
 Rxa1 68. Qd7+ Kc5 69. Qc7+ Bc6 70. Qe5+ {Hmm.} 70... Bd5 71. Qxf5 {Sometimes you

                                                ^
partitiimultime2.cpp:61:52: error: too many decimal points in number
 need to sacrifice pieces to conjure good attacks.} 71... Ra2+ {Let me win now

                                                    ^
partitiimultime2.cpp:62:1: error: stray '\342' in program
 and I’ll let you stay human.} 72. Kb1 Rg2 73. Qc8+ Kd6 74. Qd8+ Ke6 75. Qb6+ Kf7

 ^
partitiimultime2.cpp:62:1: error: stray '\200' in program
partitiimultime2.cpp:62:1: error: stray '\231' in program
partitiimultime2.cpp:63:1: error: stray '\342' in program
 76. Qxb4 Rf2 77. Qxd4 {Hmm…} 77... Rf1+ 78. Kc2 Be6 79. Qe3 Bf5 80. Qe5 Bd7 81.

 ^
partitiimultime2.cpp:63:1: error: stray '\200' in program
partitiimultime2.cpp:63:1: error: stray '\246' in program
partitiimultime2.cpp:63:32: error: too many decimal points in number
 76. Qxb4 Rf2 77. Qxd4 {Hmm…} 77... Rf1+ 78. Kc2 Be6 79. Qe3 Bf5 80. Qe5 Bd7 81.

                                ^
partitiimultime2.cpp:65:30: error: too many decimal points in number
 are putting pressure on me.} 87... Kg8 88. Qe6+ Kh8 89. Qf6+ Kh7 90. Qf5+ Kg7

                              ^
partitiimultime2.cpp:67:1: error: stray '\342' in program
 d6 Bf7 98. Qh4+ Kxf5 {Poof $1 It’s gone.} 99. Qxd8 Be6 100. Kc6 Ke4 101. d7 Bd5+

 ^
partitiimultime2.cpp:67:1: error: stray '\200' in program
partitiimultime2.cpp:67:1: error: stray '\231' in program
partitiimultime2.cpp:69:33: error: stray '#' in program
 Qxd5+ Ka6 108. Qee4 Ka7 109. Qa5# {Ah yes, keep moving your little minions.} 1-0
                                 ^
partitiimultime2.cpp:1:1: error: expected unqualified-id before '[' token
 [Event "?"]

 ^
partitiimultime2.cpp:10:39: error: expected unqualified-id before numeric constant
 was magically turned into a sheep…} 3. d3 c5 {…I doubt that will happen to you.

                                       ^
partitiimultime2.cpp:11:8: error: expected unqualified-id before numeric constant
 Ha…} 4. e3 {Ah yes, keep moving your little minions.} 4... h6 5. Nc3 {I see

        ^
partitiimultime2.cpp:11:57: error: expected unqualified-id before numeric constant
 Ha…} 4. e3 {Ah yes, keep moving your little minions.} 4... h6 5. Nc3 {I see

                                                         ^
partitiimultime2.cpp:12:48: error: expected unqualified-id before numeric constant
 you’re well-versed in knight magic as well.} 5... Qd6 6. gxh6 {I don’t like

                                                ^
partitiimultime2.cpp:13:8: error: expected unqualified-id before numeric constant
 that.} 6... Bxh6 {Another piece I can use for a spell.} 7. Nf3 {I couldn’t have

        ^
partitiimultime2.cpp:13:57: error: expected unqualified-id before numeric constant
 that.} 6... Bxh6 {Another piece I can use for a spell.} 7. Nf3 {I couldn’t have

                                                         ^
partitiimultime2.cpp:14:31: error: expected unqualified-id before numeric constant
 picked a better move myself.} 7... d4 {I am planning nothing with that move.

                               ^
partitiimultime2.cpp:15:13: error: expected unqualified-id before numeric constant
 Ignore it.} 8. exd4 {That’s a shame.} 8... cxd4 9. Ne4 {Running away $2} 9... Qb6

             ^
partitiimultime2.cpp:15:41: error: expected unqualified-id before numeric constant
 Ignore it.} 8. exd4 {That’s a shame.} 8... cxd4 9. Ne4 {Running away $2} 9... Qb6

                                         ^
partitiimultime2.cpp:15:76: error: expected unqualified-id before numeric constant
 Ignore it.} 8. exd4 {That’s a shame.} 8... cxd4 9. Ne4 {Running away $2} 9... Qb6

                                                                            ^
partitiimultime2.cpp:16:38: error: expected unqualified-id before numeric constant
 {A temporary retreat, I assure you.} 10. Bxh6 {I needed that for a spell.} 10...

                                      ^
partitiimultime2.cpp:16:76: error: expected unqualified-id before numeric constant
 {A temporary retreat, I assure you.} 10. Bxh6 {I needed that for a spell.} 10...

                                                                            ^
partitiimultime2.cpp:17:37: error: expected unqualified-id before numeric constant
 Nxh6 {I’ll take that. Ha…ha…} 11. Nfg5 Ng4 {You will make a bad move…you must

                                     ^
partitiimultime2.cpp:18:21: error: expected unqualified-id before numeric constant
 make a bad move $1} 12. h3 {Pawns are disposable. I could care less how you use

                     ^
partitiimultime2.cpp:19:8: error: expected unqualified-id before numeric constant
 them.} 12... Ne3 {That move’s worth its weight in gold.} 13. Qf3 {…yes…that’s an

        ^
partitiimultime2.cpp:19:60: error: expected unqualified-id before numeric constant
 them.} 12... Ne3 {That move’s worth its weight in gold.} 13. Qf3 {…yes…that’s an

                                                            ^
partitiimultime2.cpp:20:28: error: expected unqualified-id before numeric constant
 interesting queen move…} 13... f6 {What do you think of that $2} 14. Nxf6+ {Take a

                            ^
partitiimultime2.cpp:20:68: error: expected unqualified-id before numeric constant
 interesting queen move…} 13... f6 {What do you think of that $2} 14. Nxf6+ {Take a

                                                                    ^
partitiimultime2.cpp:21:49: error: expected unqualified-id before numeric constant
 page out of Sir Arthur’s book and play nice.} 14... Qxf6 {Obviously.} 15. Qxf6

                                                 ^
partitiimultime2.cpp:21:73: error: expected unqualified-id before numeric constant
 page out of Sir Arthur’s book and play nice.} 14... Qxf6 {Obviously.} 15. Qxf6

                                                                         ^
partitiimultime2.cpp:22:46: error: expected unqualified-id before numeric constant
 {I wish I had a scroll to review this game.} 15... exf6 {You’ll need to

                                              ^
partitiimultime2.cpp:23:48: error: expected unqualified-id before numeric constant
 transform a pawn if you want your queen back.} 16. Ne4 {What are you planning $2}

                                                ^
partitiimultime2.cpp:24:1: error: expected unqualified-id before numeric constant
 16... Nxc2+ {Takes.} 17. Kd2 {You’re quite the escape artist.} 17... Nxa1 18.

 ^
partitiimultime2.cpp:24:22: error: expected unqualified-id before numeric constant
 16... Nxc2+ {Takes.} 17. Kd2 {You’re quite the escape artist.} 17... Nxa1 18.

                      ^
partitiimultime2.cpp:24:66: error: expected unqualified-id before numeric constant
 16... Nxc2+ {Takes.} 17. Kd2 {You’re quite the escape artist.} 17... Nxa1 18.

                                                                  ^
partitiimultime2.cpp:25:54: error: expected unqualified-id before numeric constant
 Be2 {I’ll make that bishop disappear soon enough.} 18... f5 {One of these days,

                                                      ^
partitiimultime2.cpp:26:52: error: expected unqualified-id before numeric constant
 I’ll transform a pawn into something dangerous.} 19. Nf6+ {HEY $1} 19... Ke7 {Just

                                                    ^
partitiimultime2.cpp:26:70: error: expected unqualified-id before numeric constant
 I’ll transform a pawn into something dangerous.} 19. Nf6+ {HEY $1} 19... Ke7 {Just

                                                                      ^
partitiimultime2.cpp:27:63: error: expected unqualified-id before numeric constant
 a regular move. Nothing scary about it. Nothing to see here.} 20. Nd5+ {That

                                                               ^
partitiimultime2.cpp:28:34: error: expected unqualified-id before numeric constant
 looks like a strong move to me.} 20... Kd6 {My precious king $1} 21. Bf3 {Tricky

                                  ^
partitiimultime2.cpp:28:66: error: expected unqualified-id before numeric constant
 looks like a strong move to me.} 20... Kd6 {My precious king $1} 21. Bf3 {Tricky

                                                                  ^
partitiimultime2.cpp:29:10: error: expected unqualified-id before numeric constant
 tricky.} 21... Nd7 {My knight $2 Magic $2 No, they can all move like this.} 22. Rxa1

          ^
partitiimultime2.cpp:29:77: error: expected unqualified-id before numeric constant
 tricky.} 21... Nd7 {My knight $2 Magic $2 No, they can all move like this.} 22. Rxa1

                                                                             ^
partitiimultime2.cpp:30:72: error: expected unqualified-id before numeric constant
 {I would rather you play on Kingdom Chess than keep taking my pieces.} 22... Ne5

                                                                        ^
partitiimultime2.cpp:31:46: error: expected unqualified-id before numeric constant
 {I can’t conjure a better move than that.} 23. Nf4 Nxf3+ 24. gxf3 {That was one

                                              ^
partitiimultime2.cpp:32:37: error: expected unqualified-id before numeric constant
 of my more magical jumping pieces.} 24... Ke5 {Okay, maybe I have turned an

                                     ^
partitiimultime2.cpp:33:43: error: expected unqualified-id before numeric constant
 opponent or two into a sheep. So what $2} 25. Ng6+ {I underestimated your

                                           ^
partitiimultime2.cpp:34:12: error: expected unqualified-id before numeric constant
 strength.} 25... Kf6 {I can escape anything.} 26. Nxh8 {I turned your rook into

            ^
partitiimultime2.cpp:34:47: error: expected unqualified-id before numeric constant
 strength.} 25... Kf6 {I can escape anything.} 26. Nxh8 {I turned your rook into

                                               ^
partitiimultime2.cpp:35:39: error: expected unqualified-id before numeric constant
 dust $1 What do you think of that $2} 26... Bd7 {Careful, I’ve invaded kingdoms

                                       ^
partitiimultime2.cpp:36:23: error: expected unqualified-id before numeric constant
 stronger than yours.} 27. Rg1 Rxh8 {My kingdom for a horse.} 28. Rg3 {Stop

                       ^
partitiimultime2.cpp:36:62: error: expected unqualified-id before numeric constant
 stronger than yours.} 27. Rg1 Rxh8 {My kingdom for a horse.} 28. Rg3 {Stop

                                                              ^
partitiimultime2.cpp:37:21: error: expected unqualified-id before numeric constant
 making good moves.} 28... Be6 {Do you believe in magic $2} 29. f4 {A footsoldier.}

                     ^
partitiimultime2.cpp:37:60: error: expected unqualified-id before numeric constant
 making good moves.} 28... Be6 {Do you believe in magic $2} 29. f4 {A footsoldier.}

                                                            ^
partitiimultime2.cpp:38:1: error: expected unqualified-id before numeric constant
 29... Rc8 30. b3 Bd5 31. Ke2 Rc2+ {I’ve got a level 4 Castle in Kingdom Chess.

 ^
partitiimultime2.cpp:39:20: error: expected unqualified-id before numeric constant
 What about you $2} 32. Kd1 {Hmm…if only I could consult the scrolls.} 32... Rxa2

                    ^
partitiimultime2.cpp:39:73: error: expected unqualified-id before numeric constant
 What about you $2} 32. Kd1 {Hmm…if only I could consult the scrolls.} 32... Rxa2

                                                                         ^
partitiimultime2.cpp:40:50: error: expected unqualified-id before numeric constant
 {Don’t pay attention to the move I just made.} 33. Kc1 a5 34. Kb1 Rf2 {I learned

                                                  ^
partitiimultime2.cpp:41:59: error: expected unqualified-id before numeric constant
 a thing or two from reviewing my games in Kingdom Chess.} 35. h4 {Pawn $2 Pfft.}

                                                           ^
partitiimultime2.cpp:42:1: error: expected unqualified-id before numeric constant
 35... b5 36. Rh3 {I see. Yes.} 36... Kg7 37. h5 Bxb3 {I need to capture all 8

 ^
partitiimultime2.cpp:42:32: error: expected unqualified-id before numeric constant
 35... b5 36. Rh3 {I see. Yes.} 36... Kg7 37. h5 Bxb3 {I need to capture all 8

                                ^
partitiimultime2.cpp:43:39: error: expected unqualified-id before numeric constant
 pawns for a potion I’m working on.} 38. h6+ Kh7 {If there were gems in this

                                       ^
partitiimultime2.cpp:44:45: error: expected unqualified-id before numeric constant
 game, I’d get them for a move like that.} 39. Kc1 Rc2+ {Errant knights are so

                                             ^
partitiimultime2.cpp:45:13: error: expected unqualified-id before numeric constant
 yesterday.} 40. Kb1 {I will find a spell to make you play worse, I promise.}

             ^
partitiimultime2.cpp:46:1: error: expected unqualified-id before numeric constant
 40... Rf2 41. Kc1 Ba2 42. Rh5 {What trickery is afoot $2} 42... Be6 {You are

 ^
partitiimultime2.cpp:46:59: error: expected unqualified-id before numeric constant
 40... Rf2 41. Kc1 Ba2 42. Rh5 {What trickery is afoot $2} 42... Be6 {You are

                                                           ^
partitiimultime2.cpp:47:32: error: expected unqualified-id before numeric constant
 strong, I will give you that.} 43. Rh4 b4 {The last three knights I’ve played

                                ^
partitiimultime2.cpp:48:54: error: expected unqualified-id before numeric constant
 have all turned into chickens afterwards. Scared $2} 44. Kb1 Ba2+ {It’s only a

                                                      ^
partitiimultime2.cpp:49:20: error: expected unqualified-id before numeric constant
 matter of time $1} 45. Ka1 {My crystal ball tells me that was a great move.

                    ^
partitiimultime2.cpp:50:9: error: expected unqualified-id before numeric constant
 Bravo.} 45... Bg8 {It’s been quiet for a while…} 46. Rh5 Ra2+ 47. Kb1

         ^
partitiimultime2.cpp:50:54: error: expected unqualified-id before numeric constant
 Bravo.} 45... Bg8 {It’s been quiet for a while…} 46. Rh5 Ra2+ 47. Kb1

                                                      ^
partitiimultime2.cpp:51:24: error: expected unqualified-id before numeric constant
 {Uncomfortable yet $2} 47... Rd2 {I don’t envy you. Ha…ha…ha…} 48. Kc1 Ra2 49. Kb1

                        ^
partitiimultime2.cpp:51:72: error: expected unqualified-id before numeric constant
 {Uncomfortable yet $2} 47... Rd2 {I don’t envy you. Ha…ha…ha…} 48. Kc1 Ra2 49. Kb1

                                                                        ^
partitiimultime2.cpp:52:41: error: expected unqualified-id before numeric constant
 Be6 {You are well versed in attacking.} 50. Rh4 Rf2 51. Rh5 Bd5 52. Ka1 Kg6

                                         ^
partitiimultime2.cpp:53:70: error: expected unqualified-id before numeric constant
 {Don’t pay attention to my last move. It’s great, I assure you.} 53. Rh3 Rf3 54.

                                                                      ^
partitiimultime2.cpp:54:73: error: expected unqualified-id before numeric constant
 Rh2 a4 55. h7 Rf1+ 56. Kb2 a3+ 57. Kc2 a2 {Baronesses don’t blunder.} 58. h8=Q

                                                                         ^
partitiimultime2.cpp:55:13: error: expected unqualified-id before numeric constant
 {…I see.} 58... a1=Q {Let me show you what real power looks like.} 59. Qh7+

             ^
partitiimultime2.cpp:55:70: error: expected unqualified-id before numeric constant
 {…I see.} 58... a1=Q {Let me show you what real power looks like.} 59. Qh7+

                                                                      ^
partitiimultime2.cpp:56:59: error: expected unqualified-id before numeric constant
 {That is a very powerful piece. I must watch out for it.} 59... Kf6 {You are

                                                           ^
partitiimultime2.cpp:57:21: error: expected unqualified-id before numeric constant
 cramping my style.} 60. Qh8+ {…yes…I see your point…} 60... Ke7 {Let me show you

                     ^
partitiimultime2.cpp:57:61: error: expected unqualified-id before numeric constant
 cramping my style.} 60. Qh8+ {…yes…I see your point…} 60... Ke7 {Let me show you

                                                             ^
partitiimultime2.cpp:58:30: error: expected unqualified-id before numeric constant
 what real power looks like.} 61. Qh7+ Kd6 {What $2 There’s nothing wrong with that

                              ^
partitiimultime2.cpp:59:8: error: expected unqualified-id before numeric constant
 move.} 62. Rh6+ Kc5 63. Qc7+ Kb5 64. Rb6+ Ka5 65. Rd6+ Ka4 66. Ra6+ Kb5 67. Rxa1

        ^
partitiimultime2.cpp:60:48: error: expected unqualified-id before numeric constant
 Rxa1 68. Qd7+ Kc5 69. Qc7+ Bc6 70. Qe5+ {Hmm.} 70... Bd5 71. Qxf5 {Sometimes you

                                                ^
partitiimultime2.cpp:61:52: error: expected unqualified-id before numeric constant
 need to sacrifice pieces to conjure good attacks.} 71... Ra2+ {Let me win now

                                                    ^
partitiimultime2.cpp:62:33: error: expected unqualified-id before numeric constant
 and I’ll let you stay human.} 72. Kb1 Rg2 73. Qc8+ Kd6 74. Qd8+ Ke6 75. Qb6+ Kf7

                                 ^
partitiimultime2.cpp:63:32: error: expected unqualified-id before numeric constant
 76. Qxb4 Rf2 77. Qxd4 {Hmm…} 77... Rf1+ 78. Kc2 Be6 79. Qe3 Bf5 80. Qe5 Bd7 81.

                                ^
partitiimultime2.cpp:65:30: error: expected unqualified-id before numeric constant
 are putting pressure on me.} 87... Kg8 88. Qe6+ Kh8 89. Qf6+ Kh7 90. Qf5+ Kg7

                              ^
partitiimultime2.cpp:67:45: error: expected unqualified-id before numeric constant
 d6 Bf7 98. Qh4+ Kxf5 {Poof $1 It’s gone.} 99. Qxd8 Be6 100. Kc6 Ke4 101. d7 Bd5+

                                             ^
partitiimultime2.cpp:68:10: error: expected unqualified-id before numeric constant
 {Check.} 102. Kc7 Be6 103. Qe8 Kd4 104. d8=Q+ Bd5 105. Qd6 Kc4 106. Qe3 Kb5 107.

          ^
partitiimultime2.cpp:69:78: error: expected unqualified-id before numeric constant
 Qxd5+ Ka6 108. Qee4 Ka7 109. Qa5# {Ah yes, keep moving your little minions.} 1-0
                                                                              ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema PartitiiMultime2 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.