Borderou de evaluare (job #2696654)
Utilizator | Data | 16 ianuarie 2021 12:26:30 | |
---|---|---|---|
Problema | Teroristi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:49: error: conflicting declaration 'long int f [900][900]'
long n, m, S, D, c[30*30][30*30], f[30*30][30*30], frec[30*30], ind[30*30][20000];
^
main.cpp:11:10: note: previous declaration as 'std::ifstream f'
ifstream f("teroristi.in");
^
main.cpp: In function 'bool BF()':
main.cpp:37:19: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
if (c[i][j] > f[i][j])
^
main.cpp:39:38: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
cr[j] = min(cr[i], c[i][j] - f[i][j]);
^
main.cpp: In function 'int main()':
main.cpp:57:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ss.size(); ++i)
~~^~~~~~~~~~~
main.cpp:91:14: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
f[ii][jj] += cr[D];
^
main.cpp:92:14: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
f[jj][ii] -= cr[D];
^
main.cpp:97:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ss.size(); ++i)
~~^~~~~~~~~~~
main.cpp:102:18: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
if (f[poz][j])
^
main.cpp:107:6: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int')
f[poz][j]--;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !