#3627
FAB
C++
Scrieţi definiția completă a subprogramului FAB
, care primeşte ca parametri a
, n
, b
, m
și returnează 1
dacă orice număr din vectorul b
se poate scrie ca sumă a două numere aflate pe poziții diferite în a
, sau 0
în caz că există cel puțin un număr din b
care nu se poate scrie ca sumă de două numere aflate pe poziții diferite în a
.
Folclorul informatic
Problema | FAB | Operații I/O |
fab.in /fab.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #54382871 | Utilizator | |
Fișier | fab.cpp | Dimensiune | 2.21 KB |
Data încărcării | 27 Noiembrie 2024, 10:07 | Scor / rezultat | Eroare de compilare |
fab.cpp:6:1: error: stray '\`' in program t5cdvgtrbvdsfashfhAEGftgbzhjbcgjHUISDHfsadbgSDB\`fNH~DKF\`sdlj\`\`\`\`\`\`\`\`\`\`\`mk\`,n\`j\`sdhi\`fsy\`F\`suidkfbdfshfusd\`jnfSBJfui \`sdjkal\`dbasm\`jasbd\`aw\`\`sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw22swsw2/sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2w2ssw2sw2sw2sw/sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2s ^ fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:6:1: error: stray '\`' in program fab.cpp:9:1: error: stray '\`' in program X{[[s[pOAz/ \`9x123oi/87/89p2e8p8000000000cp ^ fab.cpp:10:7: error: stray '\305' in program ů?×1Đ\Äµ× 1 Ýů?×K ű PŕOĐ ę:i˘Ř +00ť /C:\ 1 „WÜc PROGRA~1 p ďľî:…„WÜc* < F P r o g r a m F i l e s @ s h e l l 3 2 . d l l , - 2 1 7 8 1 V 1 >S”3 Python38 > ďľ>Sy3>S”3* tj % P y t h o n 3 8 F 1 >S‹3 Lib 4 ďľ>S€3>S‹3* Uk 8 L i b R 1 >S‹3 idlelib < ďľ>S‹3>S‹3* ă‚ i d l e l i b V 2 K ŁRÁF idle.pyw > ᆪRÁF>S‹3* L i d l e . p y w } - 4 Q †—¸ C:\ \\LB12\C Program Files\Python38\Lib\idlelib\idle.pyw 4 . . \ . . \ . . \ P r o g r a m F i l e s \ P y t h o n 3 8 \ L i b \ i d l e l i b \ i d l e . p y w % C : \ P r o g r a m F i l e s \ P y t h o n 3 8 \ L i b \ i d l e l i b & µ ¶c^żÁNI˛śe·2Óҵ • ‰ 1SPSâŠXFĽL8C»ü“&mÎm . S - 1 - 5 - 2 1 ^ fab.cpp:10:7: error: stray '\257' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\227' in program fab.cpp:10:7: error: stray '\1' in program fab.cpp:10:7: error: stray '\21' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\220' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\204' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\265' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\227' in program fab.cpp:10:7: error: stray '\1' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\235' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\257' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\227' in program fab.cpp:10:7: error: stray '\1' in program fab.cpp:10:7: error: stray '\2' in program fab.cpp:10:7: error: stray '\1' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\261' in program fab.cpp:10:7: error: stray '\1' in program fab.cpp:10:7: error: stray '\24' in program fab.cpp:10:7: error: stray '\37' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\225' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\220' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\231' in program fab.cpp:10:7: error: stray '\20' in program fab.cpp:10:7: error: stray '\313' in program fab.cpp:10:7: error: stray '\230' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\230' in program fab.cpp:10:7: error: stray '\10' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\245' in program fab.cpp:10:7: error: stray '\31' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\210' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\236' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\234' in program fab.cpp:10:7: error: stray '\21' in program fab.cpp:10:7: error: stray '\10' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\217' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\276' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\256' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\246' in program fab.cpp:10:7: error: stray '\32' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\236' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\234' in program fab.cpp:10:7: error: stray '\1' in program fab.cpp:10:220: error: stray '@' in program ů?×1Đ\Äµ× 1 Ýů?×K ű PŕOĐ ę:i˘Ř +00ť /C:\ 1 „WÜc PROGRA~1 p ďľî:…„WÜc* < F P r o g r a m F i l e s @ s h e l l 3 2 . d l l , - 2 1 7 8 1 V 1 >S”3 Python38 > ďľ>Sy3>S”3* tj % P y t h o n 3 8 F 1 >S‹3 Lib 4 ďľ>S€3>S‹3* Uk 8 L i b R 1 >S‹3 idlelib < ďľ>S‹3>S‹3* ă‚ i d l e l i b V 2 K ŁRÁF idle.pyw > ᆪRÁF>S‹3* L i d l e . p y w } - 4 Q †—¸ C:\ \\LB12\C Program Files\Python38\Lib\idlelib\idle.pyw 4 . . \ . . \ . . \ P r o g r a m F i l e s \ P y t h o n 3 8 \ L i b \ i d l e l i b \ i d l e . p y w % C : \ P r o g r a m F i l e s \ P y t h o n 3 8 \ L i b \ i d l e l i b & µ ¶c^żÁNI˛śe·2Óҵ • ‰ 1SPSâŠXFĽL8C»ü“&mÎm . S - 1 - 5 - 2 1 ^ fab.cpp:10:7: error: stray '\30' in program ů?×1Đ\Äµ× 1 Ýů?×K ű PŕOĐ ę:i˘Ř +00ť /C:\ 1 „WÜc PROGRA~1 p ďľî:…„WÜc* < F P r o g r a m F i l e s @ s h e l l 3 2 . d l l , - 2 1 7 8 1 V 1 >S”3 Python38 > ďľ>Sy3>S”3* tj % P y t h o n 3 8 F 1 >S‹3 Lib 4 ďľ>S€3>S‹3* Uk 8 L i b R 1 >S‹3 idlelib < ďľ>S‹3>S‹3* ă‚ i d l e l i b V 2 K ŁRÁF idle.pyw > ᆪRÁF>S‹3* L i d l e . p y w } - 4 Q †—¸ C:\ \\LB12\C Program Files\Python38\Lib\idlelib\idle.pyw 4 . . \ . . \ . . \ P r o g r a m F i l e s \ P y t h o n 3 8 \ L i b \ i d l e l i b \ i d l e . p y w % C : \ P r o g r a m F i l e s \ P y t h o n 3 8 \ L i b \ i d l e l i b & µ ¶c^żÁNI˛śe·2Óҵ • ‰ 1SPSâŠXFĽL8C»ü“&mÎm . S - 1 - 5 - 2 1 ^ fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\235' in program fab.cpp:10:7: error: stray '\20' in program fab.cpp:10:7: error: stray '\10' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\217' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\276' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\235' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\30' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\271' in program fab.cpp:10:7: error: stray '\20' in program fab.cpp:10:7: error: stray '\10' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\217' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\276' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\202' in program fab.cpp:10:7: error: stray '\254' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\271' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\22' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\271' in program fab.cpp:10:7: error: stray '\20' in program fab.cpp:10:7: error: stray '\10' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\217' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\276' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\271' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\271' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\203' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\232' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\5' in program fab.cpp:10:7: error: stray '\26' in program fab.cpp:10:7: error: stray '\2' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\201' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\201' in program fab.cpp:10:7: error: stray '\10' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\217' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\276' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\201' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\201' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\271' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\203' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\5' in program fab.cpp:10:7: error: stray '\30' in program fab.cpp:10:7: error: stray '\34' in program fab.cpp:10:7: error: stray '\3' in program fab.cpp:10:7: error: stray '\34' in program fab.cpp:10:7: error: stray '\21' in program fab.cpp:10:7: error: stray '\3' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\240' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\224' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\270' in program fab.cpp:10:7: error: stray '\20' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\35' in program fab.cpp:10:7: error: stray '\2' in program fab.cpp:10:7: error: stray '\24' in program fab.cpp:10:7: error: stray '\2' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\' in program fab.cpp:10:7: error: stray '\20' in program fab.cpp:10:7: error: stray '\5' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\240' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\265' in program fab.cpp:10:7: error: stray '\34' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\240' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\266' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\220' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\274' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\201' in program fab.cpp:10:7: error: stray '\313' in program fab.cpp:10:7: error: stray '\233' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\233' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\267' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\223' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\207' in program fab.cpp:10:7: error: stray '\32' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\265' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\242' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\240' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\260' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\242' in program fab.cpp:10:7: error: stray '\305' in program fab.cpp:10:7: error: stray '\240' in program fab.cpp:10:7: error: stray '\304' in program fab.cpp:10:7: error: stray '\275' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\273' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\274' in program fab.cpp:10:7: error: stray '\23' in program fab.cpp:10:7: error: stray '\342' in program fab.cpp:10:7: error: stray '\200' in program fab.cpp:10:7: error: stray '\234' in program fab.cpp:10:7: error: stray '\302' in program fab.cpp:10:7: error: stray '\230' in program fab.cpp:10:7: error: stray '\303' in program fab.cpp:10:7: error: stray '\216' in program fab.cpp:10:7: error: stray '\4' in program fab.cpp:10:7: error: stray '\37' in program fab.cpp:6:1: error: 't5cdvgtrbvdsfashfhAEGftgbzhjbcgjHUISDHfsadbgSDB' does not name a type t5cdvgtrbvdsfashfhAEGftgbzhjbcgjHUISDHfsadbgSDB\`fNH~DKF\`sdlj\`\`\`\`\`\`\`\`\`\`\`mk\`,n\`j\`sdhi\`fsy\`F\`suidkfbdfshfusd\`jnfSBJfui \`sdjkal\`dbasm\`jasbd\`aw\`\`sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw22swsw2/sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2w2ssw2sw2sw2sw/sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2sw2s ^ fab.cpp:7:758: error: expected unqualified-id before numeric constant YU_u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-u-]o9;9xsws9px9{{}}} ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FAB face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. Soluția propusă de tine va fi evaluată astfel:
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ă.