Borderou de evaluare (job #1308123)

Utilizator geniucosOncescu Costin geniucos Data 3 ianuarie 2015 17:00:46
Problema Strigat Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void dfs(nod*&, int)’: user.cpp:32:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (q->urm[sir[i][j]] == 0) break; ^ user.cpp:33:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] q = q->urm[sir[i][j]]; ^ user.cpp: In function ‘int main()’: user.cpp:105:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (q->urm[sir[i][j]] == 0) q->urm[sir[i][j]] = new nod; ^ user.cpp:105:53: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (q->urm[sir[i][j]] == 0) q->urm[sir[i][j]] = new nod; ^ user.cpp:106:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] q = q->urm[sir[i][j]]; ^ user.cpp:91:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("strigat.in", "r", stdin); ^ user.cpp:92:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("strigat.out", "w", stdout); ^ user.cpp:94:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d\n", &N, &M); ^ user.cpp:99:22: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (sir[i] + 1); ^ user.cpp:108:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n", &A[i]); ^ user.cpp:142:24: warning: ‘conf’ may be used uninitialized in this function [-Wmaybe-uninitialized] conf = how[i][conf]; ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:99:22: /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] return __gets_warn (__str); ^ /tmp/ccdDlFjb.o: In function `main': user.cpp:(.text.startup+0xfd): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms356kbOK!10
20ms340kbOK!10
30ms568kbOK!10
40ms820kbOK!10
50ms828kbOK!10
64ms1312kbOK!10
724ms3840kbOK!10
844ms6212kbOK!10
924ms3308kbOK!10
100ms1220kbOK!10
Punctaj total100

Ceva nu functioneaza?