Borderou de evaluare (job #3142641)

Utilizator vlad_butnaruVlad Butnaru vlad_butnaru Data 22 iulie 2023 22:46:46
Problema Plan Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:20:5: error: conflicting declaration 'int in [256]' 20 | int in[256]; | ^~ main.cpp:10:10: note: previous declaration as 'std::ifstream in' 10 | ifstream in ("plan.in"); | ^~ main.cpp:21:5: error: conflicting declaration 'int out [256]' 21 | int out[256]; | ^~~ main.cpp:11:10: note: previous declaration as 'std::ofstream out' 11 | ofstream out ("plan.out"); | ^~~ main.cpp: In function 'int main()': main.cpp:83:11: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 83 | in[comp[edge.second]]++; | ^ main.cpp:84:12: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int') 84 | out[comp[edge.first]]++; | ^ main.cpp:91:23: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 91 | need_in += (in[i] == 0); | ^ main.cpp:92:25: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int') 92 | need_out += (out[i] == 0); | ^ main.cpp:99:15: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 99 | if (in[i] == 0) | ^ main.cpp:103:16: error: no match for 'operator[]' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int') 103 | if (out[i] == 0) | ^ main.cpp:118:23: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare] 118 | for (int i = 0; i < max(outuri.size(), inuri.size()); ++i) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?