#3606
Definim un limbaj de programare, cu instrucțiuni de atribuire și de decizie. Cunoscând valorile inițiale ale tuturor variabilelor(de la a la z), să se determine valorile tuturor variabilelor după execuția unei secvențe de program.
ONI 2006, Clasa a IX-a
| Problema | limbaj | Operații I/O |
limbaj.in/limbaj.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
| Id soluție | #64716571 | Utilizator | |
| Fișier | limbaj.cpp | Dimensiune | 2.68 KB |
| Data încărcării | 25 Mai 2026, 19:05 | Scor/rezultat | 0 puncte |
limbaj.cpp: In function ‘void verif(std::string)’: limbaj.cpp:18:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] 18 | if ( v[a[1]] == v[a[2]] ) { | ^ limbaj.cpp:18:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] 18 | if ( v[a[1]] == v[a[2]] ) { | ^ limbaj.cpp:26:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] 26 | if ( v[a[1]] > v[a[2]] ) { | ^ limbaj.cpp:26:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 26 | if ( v[a[1]] > v[a[2]] ) { | ^ limbaj.cpp:34:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] 34 | if ( v[a[1]] < v[a[2]] ) { | ^ limbaj.cpp:34:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] 34 | if ( v[a[1]] < v[a[2]] ) { | ^ limbaj.cpp: In function ‘void idk2(std::string)’: limbaj.cpp:50:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] 50 | v[a[0]] = v[a[2]]; | ^ limbaj.cpp:50:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] 50 | v[a[0]] = v[a[2]]; | ^ limbaj.cpp: In function ‘void idk()’: limbaj.cpp:66:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] 66 | v[a[0]] = v[a[2]]; | ^ limbaj.cpp:66:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] 66 | v[a[0]] = v[a[2]]; | ^ limbaj.cpp:83:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 83 | v[a[0]] = v[a[2]]; | ^ limbaj.cpp:83:37: warning: array subscript has type ‘char’ [-Wchar-subscripts] 83 | v[a[0]] = v[a[2]]; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0.002 secunde | Raspuns gresit. | 3 | 0 | ||
| 1 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 7 | 0.002 secunde | Raspuns gresit. | 3 | 0 | ||
| 8 | 0.002 secunde | Raspuns gresit. | 3 | 0 | ||
| 9 | 0.002 secunde | Raspuns gresit. | 3 | 0 | ||
| 10 | 0.002 secunde | Raspuns gresit. | 3 | 0 | ||
| 11 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 12 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 13 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 14 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 15 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 16 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 17 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 18 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 19 | 0.001 secunde | Raspuns gresit. | 3 | 0 | ||
| 20 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 21 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 22 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 23 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 24 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 25 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 26 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 27 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 28 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| 29 | 0.001 secunde | Raspuns gresit. | 4 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema limbaj 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ă.