Borderou de evaluare (job #2642067)

Utilizator MoldovanAndrei1Moldovan Andrei MoldovanAndrei1 Data 13 august 2020 16:26:21
Problema Heavy Path Decomposition Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs1(int)': main.cpp:56:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(vertex[it].first!=vertex[nod].first) ^~ main.cpp:58:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' dfs1(it); ^~~~ main.cpp: In function 'int main()': main.cpp:163:56: error: 'update' was not declared in this scope update(1,str[x1][0] , 1 , depth[a] , b , x1); ^ main.cpp:139:18: warning: unused variable 'j' [-Wunused-variable] int n, q, i, j, a, b , val_max=0; ^ main.cpp:139:28: warning: unused variable 'val_max' [-Wunused-variable] int n, q, i, j, a, b , val_max=0; ^~~~~~~ main.cpp: In function 'int lca(int, int)': main.cpp:111:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:137:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("heavypath.in","r",stdin); ^ main.cpp:138:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("heavypath.out","w",stdout); ^ main.cpp:142:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&value[i]); ^ main.cpp:145:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^ Non zero exit status: 1

Ceva nu functioneaza?