Borderou de evaluare (job #1207858)

Utilizator pavlov.ionPavlov Ion pavlov.ion Data 14 iulie 2014 10:18:39
Problema Texttrim Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&alfa[i]); ^ user.cpp:12:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d",&W);; ^ user.cpp:27:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i<strlen(s)) ^ user.cpp:6:34: 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:7:36: 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:10:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&alfa[i]); ^ user.cpp:11:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:12:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&W);; ^ /tmp/ccDk6L2M.o: In function `main': user.cpp:(.text.startup+0x7b): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms244kbIncorect00
20ms244kbOK10
30ms244kbOK10
40ms240kbOK10
50ms272kbIncorect0
60ms436kbIncorect0
74ms1216kbIncorect0
84ms1220kbIncorect0
94ms1216kbIncorect0
104ms1216kbIncorect0
Punctaj total0

Ceva nu functioneaza?