#2
suma_n
Să se scrie un program care citeşte de la tastatură un şir de numere naturale şi determină suma lor.
Problema | suma_n | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #43784544 | Utilizator | |
Fișier | suma_n.cpp | Dimensiune | 1.53 KB |
Data încărcării | 16 Mai 2023, 09:26 | Scor / rezultat | Eroare de compilare |
suma_n.cpp: In function 'void tordeles(char*, int, int, int)': suma_n.cpp:3:5: error: 'ifstream' was not declared in this scope ifstream in(szoveg); ^ suma_n.cpp:3:14: error: expected ';' before 'in' ifstream in(szoveg); ^ suma_n.cpp:4:5: error: 'in' was not declared in this scope in>>noskipws; ^ suma_n.cpp:4:9: error: 'noskipws' was not declared in this scope in>>noskipws; ^ suma_n.cpp:6:23: error: 'settextstyle' was not declared in this scope settextstyle(8,0,1); ^ suma_n.cpp:13:25: error: 'strlen' was not declared in this scope i=strlen(maradek); ^ suma_n.cpp:14:25: error: 'strcpy' was not declared in this scope strcpy(s,maradek); ^ suma_n.cpp:46:35: error: 'strcat' was not declared in this scope strcat(s,space); ^ suma_n.cpp:61:15: error: 'puts' was not declared in this scope puts(s); ^ suma_n.cpp:62:26: error: 'outtextxy' was not declared in this scope outtextxy(xt,yt,s); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema suma_n 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ă.