#1148
ExistaImpareDivImp
Se dă un şir cu n
elemente, numere naturale. Folosind metoda Divide et Impera să se verifice dacă în şir există elemente impare.
Problema | ExistaImpareDivImp | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #5066649 | Utilizator | |
Fișier | existaimparedivimp.pas | Dimensiune | 621 B |
Data încărcării | 29 Aprilie 2017, 13:16 | Scor / rezultat | Eroare de compilare |
Free Pascal Compiler version 2.6.2-8 [2014/01/22] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for i386 Compiling existaimparedivimp.pas existaimparedivimp.pas(20,17) Error: Incompatible types: got "Boolean" expected "LongInt" existaimparedivimp.pas(21,17) Error: Incompatible types: got "Boolean" expected "LongInt" existaimparedivimp.pas(22,22) Error: Incompatible types: got "LongInt" expected "Boolean" existaimparedivimp.pas(36,4) Fatal: There were 3 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ExistaImpareDivImp face parte din prima categorie. 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ă.