Borderou de evaluare (job #2697193)

Utilizator jucatorulGrigore George Alexandru jucatorul Data 17 ianuarie 2021 19:36:07
Problema Critice Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:11: error: conflicting declaration 'int c [1002]' int c[1002]; ^ main.cpp:6:5: note: previous declaration as 'int c [1002][1002]' int c[1002][1002]; ^ main.cpp: In function 'int bfs()': main.cpp:23:12: error: incompatible types in assignment of 'int' to 'int [1002]' c[0] = 1; ^ main.cpp:26:20: error: invalid conversion from 'int*' to 'int' [-fpermissive] x = c[inc++]; ~~~~~~~^ main.cpp:27:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < a[x].size(); ++i) ~~^~~~~~~~~~~~~ main.cpp:32:27: error: incompatible types in assignment of 'int' to 'int [1002]' c[++sf] = y; ^ main.cpp: In function 'void cale(int, int)': main.cpp:49:12: error: incompatible types in assignment of 'int' to 'int [1002]' c[0] = S; ^ main.cpp:52:20: error: invalid conversion from 'int*' to 'int' [-fpermissive] x = c[inc++]; ~~~~~~~^ main.cpp:53:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < a[x].size(); ++i) ~~^~~~~~~~~~~~~ main.cpp:59:27: error: incompatible types in assignment of 'int' to 'int [1002]' c[++sf] = y; ^ main.cpp: In function 'int main()': main.cpp:81:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < a[N].size(); ++i) ~~^~~~~~~~~~~~~ main.cpp:84:37: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if(!t[x] || c[x][N] == f[x][N]) continue; ^ main.cpp:86:28: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') r = c[x][N] - f[x][N]; ^ main.cpp:87:68: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') for(j = x; j > 1; j = t[j]) r = min(r, c[ t[j] ][j] - f[ t[j] ][j]); ^ main.cpp:90:14: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[x][N] += r; ^ main.cpp:91:14: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[N][x] -= r; Non zero exit status: 1

Ceva nu functioneaza?