Borderou de evaluare (job #1714956)

Utilizator TibiraducanuTiberiu Raducanu Tibiraducanu Data 9 iunie 2016 19:54:36
Problema Secventa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<strlen(s)) ^ user.cpp:39:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i>=strlen(s)) break; ^ user.cpp:14:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secventa.in","r",stdin); ^ user.cpp:15:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secventa.out","w",stdout); ^ user.cpp:20:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&n,&k); ^ user.cpp:22:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:69:27: warning: ‘sf’ may be used uninitialized in this function [-Wmaybe-uninitialized] printf("%d %d %d\n",sf-k+1,sf,maxx); ^ /tmp/ccF5aPQy.o: In function `main': user.cpp:(.text.startup+0x7c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbOK10
2Depăşit356kbTime limit exceeded.0
3Depăşit636kbTime limit exceeded.0
4Depăşit700kbTime limit exceeded.0
5Depăşit844kbTime limit exceeded.0
6Depăşit964kbTime limit exceeded.0
7Depăşit1432kbTime limit exceeded.0
8Depăşit2016kbTime limit exceeded.0
9Depăşit2600kbTime limit exceeded.0
10Depăşit3196kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?