Borderou de evaluare (job #2616497)

Utilizator claudiu7761Claudiu Mitrofan claudiu7761 Data 18 mai 2020 18:26:14
Problema Taramul Nicaieri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:15:11: error: conflicting declaration 'int in [110]' int in[110]; ^ main.cpp:9:10: note: previous declaration as 'std::ifstream in' ifstream in("harta.in"); ^~ main.cpp:16:12: error: conflicting declaration 'int out [110]' int out[110]; ^ main.cpp:10:10: note: previous declaration as 'std::ofstream out' ofstream out("harta.out"); ^~~ main.cpp: In function 'int main()': main.cpp:54:18: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') in >> out[i] >> in[i]; ^ main.cpp:54:27: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') in >> out[i] >> in[i]; ^ main.cpp:68:22: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') c[0][i] = out[i]; ^ main.cpp:69:37: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') c[100 + i][100 + n + 1] = in[i]; ^ Non zero exit status: 1

Ceva nu functioneaza?