Pagini recente » Cod sursa (job #2412679) | Borderou de evaluare (job #235566) | Borderou de evaluare (job #2045455) | Borderou de evaluare (job #2915903) | Borderou de evaluare (job #2313305)
Borderou de evaluare (job #2313305)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:21:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("carnati.in","r",stdin);
^
main.cpp:22:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("carnati.out","w",stdout);
^
main.cpp:23:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&c);
^
main.cpp:25:42: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&v[i].tp,&v[i].pret);
^
main.cpp:45:36: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(s-(v[j].tp-v[p].tp)*c+c<0)
~~~~~^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 5ms | 131kb | OK | 10 |
5 | 12ms | 131kb | OK | 10 |
6 | 12ms | 131kb | OK | 10 |
7 | 12ms | 131kb | OK | 10 |
8 | 40ms | 131kb | OK | 10 |
9 | 40ms | 131kb | OK | 10 |
10 | 40ms | 131kb | OK | 10 |
Punctaj total | 100 |