Borderou de evaluare (job #2815083)

Utilizator IoanaLiviaPopescu15Ioana Livia IoanaLiviaPopescu15 Data 9 decembrie 2021 05:13:15
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:77:5: error: redefinition of 'int n' 77 | int n, a[105][105]; | ^ main.cpp:5:5: note: 'int n' previously declared here 5 | int n, a[105][105]; | ^ main.cpp:77:8: error: redefinition of 'int a [105][105]' 77 | int n, a[105][105]; | ^ main.cpp:5:8: note: 'int a [105][105]' previously declared here 5 | int n, a[105][105]; | ^ main.cpp:79:10: error: redefinition of 'std::ifstream fin' 79 | ifstream fin("royfloyd.in"); | ^~~ main.cpp:7:10: note: 'std::ifstream fin' previously declared here 7 | ifstream fin("royfloyd.in"); | ^~~ main.cpp:80:10: error: redefinition of 'std::ofstream fout' 80 | ofstream fout("royfloyd.out"); | ^~~~ main.cpp:8:10: note: 'std::ofstream fout' previously declared here 8 | ofstream fout("royfloyd.out"); | ^~~~ main.cpp:82:6: error: redefinition of 'void citire()' 82 | void citire() | ^~~~~~ main.cpp:10:6: note: 'void citire()' previously defined here 10 | void citire() | ^~~~~~ main.cpp:95:6: error: redefinition of 'void roy_floyd()' 95 | void roy_floyd() | ^~~~~~~~~ main.cpp:23:6: note: 'void roy_floyd()' previously defined here 23 | void roy_floyd() | ^~~~~~~~~ main.cpp:108:6: error: redefinition of 'void afis()' 108 | void afis() | ^~~~ main.cpp:36:6: note: 'void afis()' previously defined here 36 | void afis() | ^~~~ main.cpp:130:5: error: redefinition of 'int main()' 130 | int main() | ^~~~ main.cpp:58:5: note: 'int main()' previously defined here 58 | int main() | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?