#57
n_Suma
Să se scrie un program care să citească din fișier n
numere întregi și să calculeze suma lor.
Problema | n_Suma | Operații I/O |
n_suma.in /n_suma.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #17786934 | Utilizator | |
Fișier | n_suma.pas | Dimensiune | 271 B |
Data încărcării | 20 Octombrie 2019, 18:24 | 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 n_suma.pas n_suma.pas(6,10) Error: Identifier not found "f1" n_suma.pas(7,10) Error: Identifier not found "f2" n_suma.pas(8,9) Error: Identifier not found "f1" n_suma.pas(9,11) Error: Identifier not found "f2" n_suma.pas(10,8) Error: Identifier not found "f1" n_suma.pas(11,13) Warning: Variable "n" does not seem to be initialized n_suma.pas(13,4) Warning: Variable "s" does not seem to be initialized n_suma.pas(14,11) Error: Identifier not found "f2" n_suma.pas(15,9) Error: Identifier not found "f1" n_suma.pas(16,9) Error: Identifier not found "f2" n_suma.pas(17,4) Fatal: There were 8 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 n_Suma 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ă.