Borderou de evaluare (job #3254186)

Utilizator ArthurrrfubinacaARthur Paun Arthurrrfubinaca Data 6 noiembrie 2024 14:01:46
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void citire()': main.cpp:9:10: error: 'n' was not declared in this scope 9 | fin>>n; | ^ main.cpp:10:16: error: 'x' was not declared in this scope 10 | while(fin>>x>>y) | ^ main.cpp:10:19: error: 'y' was not declared in this scope 10 | while(fin>>x>>y) | ^ main.cpp:12:9: error: 'g' was not declared in this scope 12 | g[x].push_back(y); | ^ main.cpp: In function 'void afisare()': main.cpp:18:20: error: 'n' was not declared in this scope 18 | for(int i=1;i<=n;i++) | ^ main.cpp:19:15: error: 'st' was not declared in this scope; did you mean 'std'? 19 | fout<<st[i]<<" "; | ^~ | std main.cpp:20:11: error: 'st' was not declared in this scope; did you mean 'std'? 20 | fout<<st[1]; | ^~ | std main.cpp: In function 'bool valid(int)': main.cpp:26:12: error: 'st' was not declared in this scope; did you mean 'std'? 26 | if(st[i]==st[k]) | ^~ | std main.cpp:29:13: error: 'g' was not declared in this scope 29 | if(find(g[st[k]].begin(),g[st[k]].end(),st[k-1])==g[st[k]].end()) | ^ main.cpp:29:15: error: 'st' was not declared in this scope; did you mean 'std'? 29 | if(find(g[st[k]].begin(),g[st[k]].end(),st[k-1])==g[st[k]].end()) | ^~ | std main.cpp:31:11: error: 'n' was not declared in this scope 31 | if(k==n && find(g[st[k]].begin(),g[st[k]].end(),st[1])==g[st[k]].end()) | ^ main.cpp:31:21: error: 'g' was not declared in this scope 31 | if(k==n && find(g[st[k]].begin(),g[st[k]].end(),st[1])==g[st[k]].end()) | ^ main.cpp:31:23: error: 'st' was not declared in this scope; did you mean 'std'? 31 | if(k==n && find(g[st[k]].begin(),g[st[k]].end(),st[1])==g[st[k]].end()) | ^~ | std main.cpp: In function 'int bt(int)': main.cpp:37:20: error: 'n' was not declared in this scope 37 | for(int i=1;i<=n,ok=0;i++) Non zero exit status: 1

Ceva nu functioneaza?