Borderou de evaluare (job #2288212)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 22 noiembrie 2018 22:29:53
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:21:91: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short unsigned int*' [-Wformat=] freopen("dijkstra.in","r",stdin),freopen("dijkstra.out","w",stdout),scanf("%d%d",&n,&m); ^ main.cpp:23:32: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short unsigned int*' [-Wformat=] scanf("%d%d%d",&u,&w,&f); ^ main.cpp:23:32: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short unsigned int*' [-Wformat=] main.cpp:23:32: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'short unsigned int*' [-Wformat=] main.cpp:30:45: warning: for increment expression has no effect [-Wunused-value] for(t=h[1],S(1,k),p[h[1]]=w=1,k--;;w<=k;) { ~^~~ main.cpp:30:48: error: expected ')' before ';' token for(t=h[1],S(1,k),p[h[1]]=w=1,k--;;w<=k;) { ^ main.cpp:30:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(t=h[1],S(1,k),p[h[1]]=w=1,k--;;w<=k;) { ^~~ main.cpp:30:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(t=h[1],S(1,k),p[h[1]]=w=1,k--;;w<=k;) { ^ main.cpp:30:49: error: expected primary-expression before ')' token main.cpp:21:92: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("dijkstra.in","r",stdin),freopen("dijkstra.out","w",stdout),scanf("%d%d",&n,&m); ^ main.cpp:21:92: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] main.cpp:21:92: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] main.cpp:23:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&u,&w,&f); ^ Non zero exit status: 1

Ceva nu functioneaza?