Borderou de evaluare (job #1510324)

Utilizator SilviuIIon Silviu SilviuI Data 24 octombrie 2015 20:28:12
Problema Trompeta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trompeta.in","r",stdin); ^ user.cpp:18:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trompeta.out","w",stdout); ^ user.cpp:19:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); gets(s); ^ user.cpp:19:30: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); gets(s); ^ user.cpp:20:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); findmax(1); ^ user.cpp: In function ‘void findmax(int)’: user.cpp:14:22: warning: ‘nextpos’ may be used uninitialized in this function [-Wmaybe-uninitialized] findmax(nextpos+1); ^ /tmp/cccrHjis.o: In function `main': user.cpp:(.text.startup+0x6f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
20ms272kbOK10
30ms280kbOK10
40ms276kbOK10
50ms280kbOK10
6Depăşit344kbTime limit exceeded.0
7Depăşit340kbTime limit exceeded.0
8Depăşit1216kbTime limit exceeded.0
9Depăşit1224kbTime limit exceeded.0
10Depăşit1220kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?