Borderou de evaluare (job #2689322)
Utilizator | Data | 20 decembrie 2020 14:55:56 | |
---|---|---|---|
Problema | Weight Graph | Status | done |
Runda | fmi-no-stress-10 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Part1(int, int)':
main.cpp:39:5: error: 'dist' was not declared in this scope
dist[node] = dst;
^~~~
main.cpp:43:24: error: invalid types 'int[int]' for array subscript
if(dst[it.first] == 0) {
^
main.cpp: In function 'void Part1(int, int)':
main.cpp:51:6: error: redefinition of 'void Part1(int, int)'
void Part1(int node, int dst) {
^~~~~
main.cpp:38:6: note: 'void Part1(int, int)' previously defined here
void Part1(int node, int dst) {
^~~~~
main.cpp:52:5: error: 'dist' was not declared in this scope
dist[node] = dst;
^~~~
main.cpp:56:24: error: invalid types 'int[int]' for array subscript
if(dst[it.first] == 0) {
^
main.cpp:59:36: error: 'Part2' was not declared in this scope
Part2(it.first, dst + 1);
^
main.cpp: In function 'void dfs2(int, int)':
main.cpp:74:31: error: too few arguments to function 'void Part1(int, int)'
Part1(g[node][0].first);
^
main.cpp:38:6: note: declared here
void Part1(int node, int dst) {
^~~~~
main.cpp:79:35: error: 'Part2' was not declared in this scope
Part2(g[node][1].first);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !