Borderou de evaluare (job #142909)

Utilizator avatar conconcon marius conconcon IP ascuns
Problemă Nod (clasa a 7-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 14 apr. 2015 16:31:53 Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void transforma(char*, int, int&)’: user.cpp:13:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp:13:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp:14:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp:16:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp:16:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp:17:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp:19:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp: In function ‘int poz(int, int)’: user.cpp:33:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] user.cpp:33:98: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] user.cpp:36:60: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] user.cpp:36:97: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] user.cpp: In function ‘int main()’: user.cpp:51:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:52:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:60:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:74:8: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:84:8: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:94:8: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:105:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp: In function ‘void transforma(char*, int, int&)’: user.cpp:19:25: warning: ‘total’ may be used uninitialized in this function [-Wuninitialized] /tmp/ccv92vvW.o: In function `main': user.cpp:(.text.startup+0xe4): warning: the `gets' function is dangerous and should not be used.
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 0 ms 272 kb OK 10
2 0 ms 272 kb OK 10
3 0 ms 272 kb OK 10
4 0 ms 260 kb Incorect 0
5 0 ms 260 kb OK 10
6 28 ms 264 kb OK 10
7 52 ms 260 kb OK 10
8 68 ms 268 kb Incorect 0
9 148 ms 264 kb OK 10
10 180 ms 268 kb OK 10
Punctaj total 80