#4113
dulciuri
Tsubasa-chan adoră dulciurile! De curând a apărut un nou tip de desert. Astfel decide să înfăptuiască o nouă fabrică care să producă acest produs delicios. Fabrica conține un container imens pătratic, plin de aluat, de 10
6
x 10
6
unități. Fiecare punct din container are drept coordonate o pereche de numere reale (x, y)
, unde 0 ≤ x, y ≤ 10
6
, iar fiecare punct are o dulceață. Dându-se toate operațiile întreprinse în producerea desertului, să se găsească dulcețurile totale ce sunt găsite la toate operațiile de degustare.
OJI 2022 clasele XI-XII
Problema | dulciuri | Operații I/O |
![]() dulciuri.in /dulciuri.out
|
---|---|---|---|
Limita timp | 0.9 secunde | Limita memorie |
Total: 512 MB
/
Stivă 64 MB
|
Id soluție | #49074192 | Utilizator | |
Fișier | dulciuri.cpp | Dimensiune | 696 B |
Data încărcării | 14 Februarie 2024, 13:59 | Scor / rezultat | Eroare de compilare |
dulciuri.cpp: In function 'int main()': dulciuri.cpp:8:8: error: 'n' was not declared in this scope f>>n; ^ dulciuri.cpp:9:9: error: 'i' was not declared in this scope for(i=1;i<=n;i++) ^ dulciuri.cpp:11:12: error: 'cer' was not declared in this scope f>>cer; ^ dulciuri.cpp:14:16: error: 'x' was not declared in this scope f>>x>>v; ^ dulciuri.cpp:14:19: error: 'v' was not declared in this scope f>>x>>v; ^ dulciuri.cpp:15:13: error: 'l' was not declared in this scope l[x]+=v; ^ dulciuri.cpp:19:16: error: 'x' was not declared in this scope f>>x>>v; ^ dulciuri.cpp:19:19: error: 'v' was not declared in this scope f>>x>>v; ^ dulciuri.cpp:20:13: error: 'c' was not declared in this scope c[x]+=v; ^ dulciuri.cpp:24:16: error: 'x1' was not declared in this scope f>>x1>>y1>>x2>>y2; ^ dulciuri.cpp:24:20: error: 'y1' was not declared in this scope f>>x1>>y1>>x2>>y2; ^ dulciuri.cpp:24:24: error: 'x2' was not declared in this scope f>>x1>>y1>>x2>>y2; ^ dulciuri.cpp:24:28: error: 'y2' was not declared in this scope f>>x1>>y1>>x2>>y2; ^ dulciuri.cpp:31:17: error: 'sx' was not declared in this scope sx=x1*(y2-y1); ^ dulciuri.cpp:33:21: error: 'sy' was not declared in this scope sy+=c[i]; ^ dulciuri.cpp:33:25: error: 'c' was not declared in this scope sy+=c[i]; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema dulciuri 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ă.