Borderou de evaluare (job #1827411)

Utilizator aeromaniaXRadoi Iulian aeromaniaX Data 11 decembrie 2016 20:06:32
Problema Texttrim Status done
Runda x_test4 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:21:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<strlen(s);i++) ^ user.cpp:44:18: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] s1[r]=NULL; ^ user.cpp: In function ‘void fix()’: user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("texttrim.in","r",stdin); ^ user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("texttrim.out","w",stdout); ^ user.cpp: In function ‘int main()’: user.cpp:15:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ^ user.cpp:16:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ user.cpp:17:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:19:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&w); ^ /tmp/ccm0tmp1.o: In function `main': user.cpp:(.text.startup+0x51): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms444kbOK100
20ms436kbOK10
30ms444kbOK10
40ms436kbOK10
54ms468kbOK10
60ms632kbOK10
74ms1416kbOK10
8Depăşit1392kbTime limit exceeded.0
9108ms1416kbOK10
10Depăşit1388kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?