#3146
Să se sorteze șirul după criteriile specificate.
| Problema | Sort4 | Operații I/O |
sort4.in/sort4.out
|
|---|---|---|---|
| Limita timp | 0.37 secunde | Limita memorie |
Total: 37 MB
/
Stivă 37 MB
|
| Id soluție | #64627543 | Utilizator | |
| Fișier | sort4.cpp | Dimensiune | 1.33 KB |
| Data încărcării | 19 Mai 2026, 11:56 | Scor/rezultat | Eroare de compilare |
sort4.cpp:13:15: error: redeclaration of ‘long long int Nr::val’ 13 | long long val; | ^~~ sort4.cpp:10:15: note: previous declaration ‘long long int Nr::val’ 10 | long long val; | ^~~ sort4.cpp:14:2: error: expected ‘;’ after struct definition 14 | } | ^ | ; sort4.cpp: In function ‘bool comp(Nr, Nr)’: sort4.cpp:22:11: error: ‘struct Nr’ has no member named ‘p_cif’; did you mean ‘s_cif’? 22 | if (a.p_cif != b.p_cif) { | ^~~~~ | s_cif sort4.cpp:22:22: error: ‘struct Nr’ has no member named ‘p_cif’; did you mean ‘s_cif’? 22 | if (a.p_cif != b.p_cif) { | ^~~~~ | s_cif sort4.cpp:23:18: error: ‘struct Nr’ has no member named ‘p_cif’; did you mean ‘s_cif’? 23 | return a.p_cif < b.p_cif; | ^~~~~ | s_cif sort4.cpp:23:28: error: ‘struct Nr’ has no member named ‘p_cif’; did you mean ‘s_cif’? 23 | return a.p_cif < b.p_cif; | ^~~~~ | s_cif sort4.cpp: In function ‘int main()’: sort4.cpp:40:14: error: ‘struct Nr’ has no member named ‘p_cif’; did you mean ‘s_cif’? 40 | v[i].p_cif = 1; | ^~~~~ | s_cif sort4.cpp:46:18: error: ‘struct Nr’ has no member named ‘p_cif’; did you mean ‘s_cif’? 46 | v[i].p_cif = 0; | ^~~~~ | s_cif sort4.cpp:55:22: error: ‘struct Nr’ has no member named ‘p_cif’; did you mean ‘s_cif’? 55 | v[i].p_cif *= c; | ^~~~~ | s_cif
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Sort4 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ă.