#1268
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 | #58312084 | Utilizator | |
Fișier | easyquery.cpp | Dimensiune | 673 B |
Data încărcării | 26 Mai 2025, 18:20 | Scor / rezultat | 80 puncte |
easyquery.cpp: In function 'int main()': easyquery.cpp:12:28: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'std::map<long long int, long long int>::mapped_type* {aka long long int*}' [-Wformat=] fscanf(f,"%d",&v[i]); ^ easyquery.cpp:31:33: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::map<long long int, long long int>::mapped_type {aka long long int}' [-Wformat=] fprintf(g,"%d ",v[i]+w[i]); ^ easyquery.cpp:6:22: warning: unused variable 's' [-Wunused-variable] int n,t,a,b,c,nr,s=0,i; ^ easyquery.cpp:10:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ easyquery.cpp:12:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[i]); ^ easyquery.cpp:13:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&t); ^ easyquery.cpp:16:42: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d%d",&nr,&a,&b,&c); ^
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.04 secunde | OK. | 20 | 20 | ||
5 | 0.176 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ă.