Borderou de evaluare (job #604271)

Utilizator avatar andreidogarel6@gmail.com Andrei Dogarel andreidogarel6@gmail.com IP ascuns
Problemă Permutări1 (clasa a 7-a) Compilator cpp-32
Rundă simulare8 Status evaluat
Dată 21 aug. 2021 12:35:36 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:15: error: conflicting declaration 'int f [11]' 8 | int n, v[11], f[11], pas; | ^ main.cpp:5:10: note: previous declaration as 'std::ifstream f' 5 | ifstream f("permutari1.in"); | ^ main.cpp: In function 'void back(int)': main.cpp:14:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 14 | if(!f[i]){ | ^ main.cpp:16:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 16 | f[i]=1; | ^ main.cpp:31:14: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 31 | f[i]=0; | ^