Borderou de evaluare (job #142557)

Utilizator avatar conconcon marius conconcon IP ascuns
Problemă Nod (clasa a 7-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 13 apr. 2015 15:04:16 Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int transforma(char*, int, int&)’: user.cpp:13:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp:13:25: 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:18:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type] user.cpp: In function ‘int poz(int, int)’: user.cpp:31:61: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] user.cpp:31:97: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] user.cpp:34:60: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] user.cpp:34:96: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] user.cpp: In function ‘int main()’: user.cpp:49:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:50:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:58:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:71:9: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:81:8: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:91:8: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:104:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] /tmp/ccyGp7EL.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 284 kb OK 10
2 0 ms 284 kb OK 10
3 0 ms 280 kb OK 10
4 0 ms 272 kb OK 10
5 0 ms 268 kb OK 10
6 24 ms 272 kb OK 10
7 64 ms 276 kb OK 10
8 76 ms 272 kb Incorect 0
9 144 ms 268 kb OK 10
10 176 ms 272 kb OK 10
Punctaj total 90