Borderou de evaluare (job #2642063)
Utilizator | Data | 13 august 2020 16:20:58 | |
---|---|---|---|
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:153:34: error: 'build' was not declared in this scope
build(1 ,str[i][0] ,1 , i);
^
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:154:9: warning: unused variable 'op' [-Wunused-variable]
int op;
^~
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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !