#1860
BlackFriday
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 | #54277049 | Utilizator | |
Fișier | blackfriday.cpp | Dimensiune | 426 B |
Data încărcării | 24 Noiembrie 2024, 15:43 | Scor / rezultat | Eroare de compilare |
blackfriday.cpp: In function 'int main()': blackfriday.cpp:8:14: warning: right operand of comma operator has no effect [-Wunused-value] for(i=1,i<=n,i++) ^ blackfriday.cpp:8:21: error: expected ';' before ')' token for(i=1,i<=n,i++) ^ blackfriday.cpp:10:5: error: expected primary-expression before 'for' for(i=1,i<=n,i++) ^ blackfriday.cpp:10:5: error: expected ';' before 'for' blackfriday.cpp:10:5: error: expected primary-expression before 'for' blackfriday.cpp:10:5: error: expected ')' before 'for' blackfriday.cpp:10:14: warning: right operand of comma operator has no effect [-Wunused-value] for(i=1,i<=n,i++) ^ blackfriday.cpp:10:21: error: expected ';' before ')' token for(i=1,i<=n,i++) ^ blackfriday.cpp:12:5: error: expected primary-expression before 'for' for(i=1,i<=n,i++) ^ blackfriday.cpp:12:5: error: expected ';' before 'for' blackfriday.cpp:12:5: error: expected primary-expression before 'for' blackfriday.cpp:12:5: error: expected ')' before 'for' blackfriday.cpp:12:14: warning: right operand of comma operator has no effect [-Wunused-value] for(i=1,i<=n,i++) ^ blackfriday.cpp:12:21: error: expected ';' before ')' token for(i=1,i<=n,i++) ^ blackfriday.cpp:18:5: error: expected primary-expression before 'for' for(i=1,i<=n,i++) ^ blackfriday.cpp:18:5: error: expected ';' before 'for' blackfriday.cpp:18:5: error: expected primary-expression before 'for' blackfriday.cpp:18:5: error: expected ')' before 'for' blackfriday.cpp:18:14: warning: right operand of comma operator has no effect [-Wunused-value] for(i=1,i<=n,i++) ^ blackfriday.cpp:18:21: error: expected ';' before ')' token for(i=1,i<=n,i++) ^ blackfriday.cpp:24:5: error: expected primary-expression before 'return' return 0; ^ blackfriday.cpp:24:5: error: expected ';' before 'return' blackfriday.cpp:24:5: error: expected primary-expression before 'return' blackfriday.cpp:24:5: error: expected ')' before 'return' blackfriday.cpp:6:9: warning: unused variable 'x' [-Wunused-variable] int x[10], y[10], i, n, pmax=0, p; ^ blackfriday.cpp:6:16: warning: unused variable 'y' [-Wunused-variable] int x[10], y[10], i, n, pmax=0, p; ^ blackfriday.cpp:6:29: warning: unused variable 'pmax' [-Wunused-variable] int x[10], y[10], i, n, pmax=0, p; ^ blackfriday.cpp:6:37: warning: unused variable 'p' [-Wunused-variable] int x[10], y[10], i, n, pmax=0, p; ^
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ă.