Problema | Lipsa | Operații I/O |
![]() lipsa.in /lipsa.out
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #51448353 | Utilizator | |
Fișier | lipsa.cpp | Dimensiune | 353 B |
Data încărcării | 18 Iunie 2024, 12:05 | Scor / rezultat | Eroare de compilare |
lipsa.cpp: In function 'int main()': lipsa.cpp:8:5: error: expected ',' or ';' before 'ofstream' ofstream fout ("lipsa.out") ^ lipsa.cpp:10:10: error: 'n' was not declared in this scope fin>>n; ^ lipsa.cpp:11:10: error: 'i' was not declared in this scope for (i=1; i<=n; i++) ^ lipsa.cpp:13:9: error: 's' was not declared in this scope s=s+i; ^ lipsa.cpp:15:10: error: 'x' was not declared in this scope fin>>x; ^ lipsa.cpp:16:10: error: 'j' was not declared in this scope for (j=1; j<=n-1; j++) ^ lipsa.cpp:18:9: error: 'cps' was not declared in this scope cps=cps+x; ^ lipsa.cpp:20:5: error: 'fout' was not declared in this scope fout << s-cps<< endl; ^ lipsa.cpp:20:13: error: 's' was not declared in this scope fout << s-cps<< endl; ^ lipsa.cpp:20:15: error: 'cps' was not declared in this scope fout << s-cps<< endl; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Lipsa 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ă.