Borderou de evaluare (job #1225241)

Utilizator BlueStrutAndrei Prahoveanu BlueStrut Data 2 septembrie 2014 09:42:05
Problema Cifra Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:20:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cifra.in","r",stdin); ^ user.cpp:21:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cifra.out","w",stdout); ^ user.cpp:22:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:25:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); x=strlen(s); ^ user.cpp: In function ‘void det()’: user.cpp:17:15: warning: array subscript is above array bounds [-Warray-bounds] a[0]=a[100]; ^ user.cpp:15:15: warning: iteration 21u invokes undefined behavior [-Waggressive-loop-optimizations] a[i]=s; ^ user.cpp:9:5: note: containing loop for (i=1;i<=100;i++) { ^ user.cpp:14:13: warning: ‘ucf’ may be used uninitialized in this function [-Wmaybe-uninitialized] s=(s+ucf)%10; ^ /tmp/ccalYE92.o: In function `main': user.cpp:(.text.startup+0xda): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms252kbRaspuns gresit!0
20ms256kbRaspuns gresit!0
30ms252kbRaspuns gresit!0
40ms252kbRaspuns gresit!0
50ms256kbRaspuns gresit!0
60ms256kbRaspuns gresit!0
70ms256kbRaspuns gresit!0
80ms260kbRaspuns gresit!0
90ms252kbRaspuns gresit!0
100ms256kbRaspuns gresit!0
Punctaj total0

Ceva nu functioneaza?