Borderou de evaluare (job #336304)

Utilizator avatar Louiz Cohen Louis Louiz IP ascuns
Problemă Numchar (clasa a 5-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 3 ian. 2018 14:14:10 Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int**’ [-Wformat] user.cpp:19:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] user.cpp:9:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:10:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:15:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:17:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:18:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.6/cstdio:44, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:17:12: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:18:12: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] /tmp/ccw8HYza.o: In function `main': user.cpp:(.text.startup+0x89): warning: the `gets' function is dangerous and should not be used.
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 0 ms 228 kb Killed by signal 11(SIGSEGV). 0
2 0 ms 224 kb Killed by signal 11(SIGSEGV). 0
3 0 ms 224 kb Killed by signal 11(SIGSEGV). 0
4 0 ms 228 kb Killed by signal 11(SIGSEGV). 0
5 0 ms 228 kb Killed by signal 11(SIGSEGV). 0
6 0 ms 224 kb Killed by signal 11(SIGSEGV). 0
7 0 ms 228 kb Killed by signal 11(SIGSEGV). 0
8 0 ms 228 kb Killed by signal 11(SIGSEGV). 0
9 0 ms 224 kb Killed by signal 11(SIGSEGV). 0
10 0 ms 232 kb Killed by signal 11(SIGSEGV). 0
Punctaj total 0