#1866
prosir
Să se înlocuiasca cu cifra 5 ultima literă a fiecărui cuvânt din textul conținut de fișierul prosir.in
.
--
Problema | prosir | Operații I/O |
prosir.in /prosir.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #27525206 | Utilizator | |
Fișier | prosir.cpp | Dimensiune | 326 B |
Data încărcării | 25 Ianuarie 2021, 23:08 | Scor / rezultat | Eroare de compilare |
prosir.cpp:4:1: error: stray '\342' in program ifstream cin(“prosir.in”); ^ prosir.cpp:4:1: error: stray '\200' in program prosir.cpp:4:1: error: stray '\234' in program prosir.cpp:4:1: error: stray '\342' in program prosir.cpp:4:1: error: stray '\200' in program prosir.cpp:4:1: error: stray '\235' in program prosir.cpp:5:1: error: stray '\342' in program ofstream cout(“prosir.out”); ^ prosir.cpp:5:1: error: stray '\200' in program prosir.cpp:5:1: error: stray '\234' in program prosir.cpp:5:1: error: stray '\342' in program prosir.cpp:5:1: error: stray '\200' in program prosir.cpp:5:1: error: stray '\235' in program prosir.cpp:11:6: error: stray '\342' in program if(s[i]==’ ‘ and isalpha(s[i-1])) s[i-1]=‘5’; ^ prosir.cpp:11:6: error: stray '\200' in program prosir.cpp:11:6: error: stray '\231' in program prosir.cpp:11:6: error: stray '\342' in program prosir.cpp:11:6: error: stray '\200' in program prosir.cpp:11:6: error: stray '\230' in program prosir.cpp:11:6: error: stray '\342' in program prosir.cpp:11:6: error: stray '\200' in program prosir.cpp:11:6: error: stray '\230' in program prosir.cpp:11:6: error: stray '\342' in program prosir.cpp:11:6: error: stray '\200' in program prosir.cpp:11:6: error: stray '\231' in program prosir.cpp:12:6: error: stray '\342' in program s[strlen(s)-2]=‘5’; ^ prosir.cpp:12:6: error: stray '\200' in program prosir.cpp:12:6: error: stray '\230' in program prosir.cpp:12:6: error: stray '\342' in program prosir.cpp:12:6: error: stray '\200' in program prosir.cpp:12:6: error: stray '\231' in program prosir.cpp:4:17: error: 'prosir' was not declared in this scope ifstream cin(“prosir.in”); ^ prosir.cpp:5:18: error: 'prosir' was not declared in this scope ofstream cout(“prosir.out”); ^ prosir.cpp: In function 'int main()': prosir.cpp:11:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(s[i]==’ ‘ and isalpha(s[i-1])) s[i-1]=‘5’; ^ prosir.cpp:11:34: error: expected ')' before '(' token if(s[i]==’ ‘ and isalpha(s[i-1])) s[i-1]=‘5’; ^ prosir.cpp:11:27: error: label 'isalpha' used but not defined if(s[i]==’ ‘ and isalpha(s[i-1])) s[i-1]=‘5’; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema prosir 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ă.