Pagini recente » Borderou de evaluare (job #8899) | Borderou de evaluare (job #2257512) | Borderou de evaluare (job #49685) | Borderou de evaluare (job #2142431) | Borderou de evaluare (job #1308123)
Borderou de evaluare (job #1308123)
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 |
1 | 0ms | 356kb | OK! | 10 |
2 | 0ms | 340kb | OK! | 10 |
3 | 0ms | 568kb | OK! | 10 |
4 | 0ms | 820kb | OK! | 10 |
5 | 0ms | 828kb | OK! | 10 |
6 | 4ms | 1312kb | OK! | 10 |
7 | 24ms | 3840kb | OK! | 10 |
8 | 44ms | 6212kb | OK! | 10 |
9 | 24ms | 3308kb | OK! | 10 |
10 | 0ms | 1220kb | OK! | 10 |
Punctaj total | 100 |