Borderou de evaluare (job #1510273)

Utilizator SilviuIIon Silviu SilviuI Data 24 octombrie 2015 19:39:22
Problema Trompeta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

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/cc3GcKSw.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
10ms272kbIncorect0
20ms276kbIncorect0
30ms276kbIncorect0
40ms284kbIncorect0
50ms276kbIncorect0
6Depăşit352kbTime limit exceeded.0
7Depăşit344kbTime limit exceeded.0
8Depăşit1216kbTime limit exceeded.0
9Depăşit1228kbTime limit exceeded.0
10Depăşit1220kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?