Borderou de evaluare (job #1494888)

Utilizator iordache.bogdanIordache Ioan-Bogdan iordache.bogdan Data 1 octombrie 2015 22:50:15
Problema Ferma Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(infile, "r", stdin); ^ user.cpp:22:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(outfile, "w", stdout); ^ user.cpp:26:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &chickenCount, &collectCount); ^ user.cpp:30:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", chickensProductivity + chicken); ^ user.cpp:45:35: warning: ‘rightEndAns’ may be used uninitialized in this function [-Wmaybe-uninitialized] int currAns = -inf, leftEndAns, rightEndAns; ^ user.cpp:78:3: warning: ‘leftEndAns’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (int chicken = leftEndAns; chicken <= rightEndAns; ++chicken) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOk!10
20ms280kbOk!10
30ms292kbOk!10
40ms280kbOk!10
50ms296kbOk!10
676ms352kbOk!10
7Depăşit408kbTime limit exceeded.0
8Depăşit408kbTime limit exceeded.0
9Depăşit412kbTime limit exceeded.0
10Depăşit400kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?