#1268
EasyQuery
Să se gestioneze stocul unui magazin.
Problema | EasyQuery | Operații I/O |
easyquery.in /easyquery.out
|
---|---|---|---|
Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #23559126 | Utilizator | |
Fișier | easyquery.c | Dimensiune | 861 B |
Data încărcării | 27 Iulie 2020, 13:33 | Scor / rezultat | 80 puncte |
easyquery.c: In function 'main': easyquery.c:17:9: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=] fscanf(fin,"%d", &a[i]); ^ easyquery.c:29:9: warning: format '%d' expects argument of type 'int *', but argument 6 has type 'long int *' [-Wformat=] fscanf(fin,"%d%d%d%d", &optiune, &x, &y, &p); ^ easyquery.c:41:9: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] fprintf(fout,"%d ", b[i]); ^ easyquery.c:12:17: warning: unused variable 'j' [-Wunused-variable] int t, n, i,j,s=0; ^ easyquery.c:14:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d", &n); ^ easyquery.c:17:15: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d", &a[i]); ^ easyquery.c:26:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d", &t); ^ easyquery.c:29:15: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%d%d", &optiune, &x, &y, &p); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0.02 secunde | OK. | 20 | 20 | ||
5 | 0.06 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 80 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema EasyQuery 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ă.