Pagini recente » Borderou de evaluare (job #1518827) | Borderou de evaluare (job #2022440) | Borderou de evaluare (job #2440630) | Borderou de evaluare (job #1812294) | Borderou de evaluare (job #1482615)
Borderou de evaluare (job #1482615)
Raport evaluator
Compilare:
user.cpp: In function ‘void dijkstra()’:
user.cpp:43:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(Viz[Node] == 0)
^
user.cpp:44:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Viz[Node] = 1;
^
user.cpp:50: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:50: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:54:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(Dist[Node] + d[i] < Dist[i] && Cap + Capete[i] <= n){
^
user.cpp:55:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Viz[Node] = 0;
^
user.cpp:56:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Dist[i] = Dist[Node] + d[i];
^
user.cpp:40:19: warning: unused variable ‘Cost’ [-Wunused-variable]
short int Cost = q.top().x;
^
user.cpp: In function ‘int main()’:
user.cpp:68: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:68:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
user.cpp:64: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:65: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:66: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:68: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:71: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 | 276kb | OK | 10 |
3 | 12ms | 400kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 260kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 8ms | 428kb | OK | 10 |
6 | 0ms | 280kb | Incorect | 0 |
7 | 0ms | 288kb | OK | 10 |
8 | 0ms | 276kb | Incorect | 0 |
9 | 0ms | 276kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 12ms | 472kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 40 |