Borderou de evaluare (job #1678664)

Utilizator bogoismarandaBogoi Smaranda bogoismaranda Data 7 aprilie 2016 14:42:20
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void prodh(int*, int*, int*)’: user.cpp:84:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(c,0,sizeof(c)); ^ user.cpp: In function ‘int main()’: user.cpp:135:15: warning: left operand of comma operator has no effect [-Wunused-value] switch(b[i],b[n+1-i]); ^ user.cpp:110:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.in","r",stdin); ^ user.cpp:111:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.out","w",stdout); ^ user.cpp:117:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sir); ^ user.cpp:123:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", & d); ^ /tmp/ccVuhuyi.o: In function `main': user.cpp:(.text.startup+0x92): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
20ms268kbOK10
30ms296kbKilled by signal 6(SIGABRT).0
40ms296kbKilled by signal 6(SIGABRT).0
50ms300kbKilled by signal 6(SIGABRT).0
60ms304kbKilled by signal 6(SIGABRT).0
70ms296kbKilled by signal 6(SIGABRT).0
80ms300kbKilled by signal 6(SIGABRT).0
90ms300kbKilled by signal 6(SIGABRT).0
100ms300kbKilled by signal 6(SIGABRT).0
Punctaj total20

Ceva nu functioneaza?