#2083
ordon123
C++
ordon123
care are 2
parametri:
n
– prin care primește un număr naturala
– prin care primește un tablou unidimensional cu n
elemente, numere naturale din mulțimea {1,2,3}
.Subprogramul ordonează crescător tabloul a
fără a returna valori.
Problema | ordon123 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.15 secunde | Limita memorie |
Total: 4 MB
/
Stivă 4 MB
|
Id soluție | #52998052 | Utilizator | |
Fișier | ordon123.cpp | Dimensiune | 369 B |
Data încărcării | 15 Octombrie 2024, 10:38 | Scor / rezultat | Eroare de compilare |
ordon123.cpp: In function 'void ordon123(int, int*)': ordon123.cpp:15:13: error: 'c1' was not declared in this scope c1++; ^ ordon123.cpp:17:13: error: 'c2' was not declared in this scope c2++; ^ ordon123.cpp:19:13: error: 'c3' was not declared in this scope c3++; ^ ordon123.cpp:21:20: error: 'c1' was not declared in this scope for(int i=0; i<c1; i++) ^ ordon123.cpp:23:15: error: 'c1' was not declared in this scope for(int i=c1; i<c+c2; i++) ^ ordon123.cpp:23:21: error: 'c' was not declared in this scope for(int i=c1; i<c+c2; i++) ^ ordon123.cpp:23:23: error: 'c2' was not declared in this scope for(int i=c1; i<c+c2; i++) ^ ordon123.cpp:25:15: error: 'c1' was not declared in this scope for(int i=c1+c2; i<c1+c2+c3;i++) ^ ordon123.cpp:25:18: error: 'c2' was not declared in this scope for(int i=c1+c2; i<c1+c2+c3;i++) ^ ordon123.cpp:25:30: error: 'c3' was not declared in this scope for(int i=c1+c2; i<c1+c2+c3;i++) ^ ordon123.cpp:12:9: warning: unused variable 'k1' [-Wunused-variable] int k1=0,k2=0,k3=0; ^ ordon123.cpp:12:14: warning: unused variable 'k2' [-Wunused-variable] int k1=0,k2=0,k3=0; ^ ordon123.cpp:12:19: warning: unused variable 'k3' [-Wunused-variable] int k1=0,k2=0,k3=0; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ordon123 face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.