Pagini recente » Borderou de evaluare (job #1333681) | Borderou de evaluare (job #49746) | Borderou de evaluare (job #293585) | Borderou de evaluare (job #2228706) | Borderou de evaluare (job #1482610)
Borderou de evaluare (job #1482610)
Raport evaluator
Compilare:
user.cpp: In function ‘void dijkstra()’:
user.cpp:44:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(Viz[Node] == 0)
^
user.cpp:45:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Viz[Node] = 1;
^
user.cpp:51:65: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(vector < short int > :: iterator it = v[Node].begin(); it != v[Node].end() && ok == 0; ++it)
^
user.cpp:51:88: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(vector < short int > :: iterator it = v[Node].begin(); it != v[Node].end() && ok == 0; ++it)
^
user.cpp:55:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(Dist[Node] + d[i] <= Dist[i] && Cap + Capete[i] <= n){
^
user.cpp:56:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Viz[Node] = 0;
^
user.cpp:57:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Dist[i] = Dist[Node] + d[i];
^
user.cpp:41:19: warning: unused variable ‘Cost’ [-Wunused-variable]
short int Cost = q.top().x;
^
user.cpp: In function ‘int main()’:
user.cpp:69:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d %d", &d[i], &Capete[i]);
^
user.cpp:69:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
user.cpp:65:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zmeu2.in", "r", stdin);
^
user.cpp:66:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zmeu2.out", "w", stdout);
^
user.cpp:67:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &p, &k);
^
user.cpp:69:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &d[i], &Capete[i]);
^
user.cpp:72:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &A, &B);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 276kb | OK | 10 |
2 | 0ms | 280kb | OK | 10 |
3 | 8ms | 400kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 260kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 8ms | 436kb | OK | 10 |
6 | 0ms | 288kb | Incorect | 0 |
7 | 0ms | 288kb | OK | 10 |
8 | 0ms | 276kb | Incorect | 0 |
9 | 0ms | 264kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 12ms | 472kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 40 |