#810
nrA
Se dă un şir de caractere ce conţine cuvinte formate din litere mici ale alfabetului englez, separate prin unul sau mai multe spații. Înaintea primului cuvânt nu există spații, și nici după ultimul. Să se determine numărul de cuvinte din șir în care apare litera a
.
Variante Bacalaureat 2013
Problema | nrA | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52006804 | Utilizator | |
Fișier | nra.cpp | Dimensiune | 220 B |
Data încărcării | 15 Septembrie 2024, 22:44 | Scor / rezultat | Eroare de compilare |
nra.cpp:1:1: error: stray '\305' in program citeşte n ^ nra.cpp:1:1: error: stray '\237' in program nra.cpp:2:5: error: stray '\304' in program (număr natural nenul) ^ nra.cpp:2:5: error: stray '\203' in program nra.cpp:3:2: error: stray '\342' in program p←0 ^ nra.cpp:3:2: error: stray '\206' in program nra.cpp:3:2: error: stray '\220' in program nra.cpp:4:1: error: stray '\342' in program ┌pentru i←1,n execută ^ nra.cpp:4:1: error: stray '\224' in program nra.cpp:4:1: error: stray '\214' in program nra.cpp:4:1: error: stray '\342' in program nra.cpp:4:1: error: stray '\206' in program nra.cpp:4:1: error: stray '\220' in program nra.cpp:4:1: error: stray '\304' in program nra.cpp:4:1: error: stray '\203' in program nra.cpp:5:1: error: stray '\342' in program │ m←i ^ nra.cpp:5:1: error: stray '\224' in program nra.cpp:5:1: error: stray '\202' in program nra.cpp:5:1: error: stray '\342' in program nra.cpp:5:1: error: stray '\206' in program nra.cpp:5:1: error: stray '\220' in program nra.cpp:6:1: error: stray '\342' in program │┌cât timp m%2=0 execută ^ nra.cpp:6:1: error: stray '\224' in program nra.cpp:6:1: error: stray '\202' in program nra.cpp:6:1: error: stray '\342' in program nra.cpp:6:1: error: stray '\224' in program nra.cpp:6:1: error: stray '\214' in program nra.cpp:6:1: error: stray '\303' in program nra.cpp:6:1: error: stray '\242' in program nra.cpp:6:1: error: stray '\304' in program nra.cpp:6:1: error: stray '\203' in program nra.cpp:7:1: error: stray '\342' in program ││ m←[m/2] ^ nra.cpp:7:1: error: stray '\224' in program nra.cpp:7:1: error: stray '\202' in program nra.cpp:7:1: error: stray '\342' in program nra.cpp:7:1: error: stray '\224' in program nra.cpp:7:1: error: stray '\202' in program nra.cpp:7:1: error: stray '\342' in program nra.cpp:7:1: error: stray '\206' in program nra.cpp:7:1: error: stray '\220' in program nra.cpp:8:1: error: stray '\342' in program │└■ ^ nra.cpp:8:1: error: stray '\224' in program nra.cpp:8:1: error: stray '\202' in program nra.cpp:8:1: error: stray '\342' in program nra.cpp:8:1: error: stray '\224' in program nra.cpp:8:1: error: stray '\224' in program nra.cpp:8:1: error: stray '\342' in program nra.cpp:8:1: error: stray '\226' in program nra.cpp:8:1: error: stray '\240' in program nra.cpp:9:1: error: stray '\342' in program │┌dacă m=1 atunci ^ nra.cpp:9:1: error: stray '\224' in program nra.cpp:9:1: error: stray '\202' in program nra.cpp:9:1: error: stray '\342' in program nra.cpp:9:1: error: stray '\224' in program nra.cpp:9:1: error: stray '\214' in program nra.cpp:9:1: error: stray '\304' in program nra.cpp:9:1: error: stray '\203' in program nra.cpp:10:1: error: stray '\342' in program ││ p←i ^ nra.cpp:10:1: error: stray '\224' in program nra.cpp:10:1: error: stray '\202' in program nra.cpp:10:1: error: stray '\342' in program nra.cpp:10:1: error: stray '\224' in program nra.cpp:10:1: error: stray '\202' in program nra.cpp:10:1: error: stray '\342' in program nra.cpp:10:1: error: stray '\206' in program nra.cpp:10:1: error: stray '\220' in program nra.cpp:11:1: error: stray '\342' in program │└■ ^ nra.cpp:11:1: error: stray '\224' in program nra.cpp:11:1: error: stray '\202' in program nra.cpp:11:1: error: stray '\342' in program nra.cpp:11:1: error: stray '\224' in program nra.cpp:11:1: error: stray '\224' in program nra.cpp:11:1: error: stray '\342' in program nra.cpp:11:1: error: stray '\226' in program nra.cpp:11:1: error: stray '\240' in program nra.cpp:12:1: error: stray '\342' in program └■ ^ nra.cpp:12:1: error: stray '\224' in program nra.cpp:12:1: error: stray '\224' in program nra.cpp:12:1: error: stray '\342' in program nra.cpp:12:1: error: stray '\226' in program nra.cpp:12:1: error: stray '\240' in program nra.cpp:1:1: error: 'cite' does not name a type citeşte n ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema nrA 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ă.