#1860
Anul acesta unele magazine din România s-au hotărât să organizeze BlackFriday joia, altele de luni până joi, iar altele sâmbătă şi duminică. Ele au afişat n
preţuri înainte de ieftinire şi cele n
preţuri după ieftinire. Aflaţi ce produs s-a ieftinit cu cel mai mare procent.
Problema | BlackFriday | Operații I/O |
![]() blackfriday.in /blackfriday.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56933980 | Utilizator | |
Fișier | blackfriday.cpp | Dimensiune | 459 B |
Data încărcării | 11 Martie 2025, 10:30 | Scor / rezultat | Eroare de compilare |
blackfriday.cpp:5:13: error: variable 'std::ifstream fin' has initializer but incomplete type ifstream fin("blackfriday.in"); ^ blackfriday.cpp:6:14: error: variable 'std::ofstream fout' has initializer but incomplete type ofstream fout("blackfriday.out"); ^ blackfriday.cpp: In function 'int main()': blackfriday.cpp:10:12: error: 'n' was not declared in this scope fin >> n,a[11],b[11],x,ma=-1,ind, i; ^ blackfriday.cpp:10:14: error: 'a' was not declared in this scope fin >> n,a[11],b[11],x,ma=-1,ind, i; ^ blackfriday.cpp:10:20: error: 'b' was not declared in this scope fin >> n,a[11],b[11],x,ma=-1,ind, i; ^ blackfriday.cpp:10:26: error: 'x' was not declared in this scope fin >> n,a[11],b[11],x,ma=-1,ind, i; ^ blackfriday.cpp:10:28: error: 'ma' was not declared in this scope fin >> n,a[11],b[11],x,ma=-1,ind, i; ^ blackfriday.cpp:10:34: error: 'ind' was not declared in this scope fin >> n,a[11],b[11],x,ma=-1,ind, i; ^ blackfriday.cpp:10:39: error: 'i' was not declared in this scope fin >> n,a[11],b[11],x,ma=-1,ind, i; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema BlackFriday 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ă.