#3606
limbaj
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 | #27427112 | Utilizator | |
Fișier | limbaj.c | Dimensiune | 1.44 KB |
Data încărcării | 21 Ianuarie 2021, 13:32 | Scor / rezultat | 12 puncte |
limbaj.c: In function 'limbaj': limbaj.c:12:5: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]' [-Wformat=] fscanf( fin, "%s", &s ); ^ limbaj.c:15:13: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]' [-Wformat=] fscanf( fin, "%s", &s ); ^ limbaj.c:27:13: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]' [-Wformat=] fscanf( fin, "%s", &s ); ^ limbaj.c:34:21: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]' [-Wformat=] fscanf( fin, "%s", &s ); ^ limbaj.c:38:9: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]' [-Wformat=] fscanf( fin, "%s", &s ); ^ limbaj.c:12:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%s", &s ); ^ limbaj.c:15:19: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%s", &s ); ^ limbaj.c:27:19: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%s", &s ); ^ limbaj.c:34:27: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%s", &s ); ^ limbaj.c:38:15: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%s", &s ); ^ limbaj.c: In function 'main': limbaj.c:47:15: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%d", &a[i] ); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | Depășit | Limita de timp depășită | 3 | 0 | ||
1 | Depășit | Limita de timp depășită | 3 | 0 | ||
2 | Depășit | Limita de timp depășită | 3 | 0 | ||
3 | Depășit | Limita de timp depășită | 3 | 0 | ||
4 | Depășit | Limita de timp depășită | 3 | 0 | ||
5 | Depășit | Limita de timp depășită | 3 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
8 | Depășit | Limita de timp depășită | 3 | 0 | ||
9 | Depășit | Limita de timp depășită | 3 | 0 | ||
10 | Depășit | Limita de timp depășită | 3 | 0 | ||
11 | Depășit | Limita de timp depășită | 3 | 0 | ||
12 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
13 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
14 | Depășit | Limita de timp depășită | 3 | 0 | ||
15 | Depășit | Limita de timp depășită | 3 | 0 | ||
16 | Depășit | Limita de timp depășită | 3 | 0 | ||
17 | Depășit | Limita de timp depășită | 3 | 0 | ||
18 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
19 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
20 | 0 secunde | OK. | 4 | 4 | ||
21 | 0 secunde | OK. | 4 | 4 | ||
22 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
23 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
24 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
25 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
26 | 0 secunde | OK. | 4 | 4 | ||
27 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
28 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
29 | 0 secunde | Raspuns gresit. | 4 | 0 | ||
Punctaj total | 12 |
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ă.