Borderou de evaluare (job #2844805)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 5 februarie 2022 15:20:51
Problema Treesmen Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:27: error: conflicting declaration 'std::pair<long long int, long long int> F [200005]' 9 | pair<long long,long long> F[200005]; | ^ main.cpp:3:10: note: previous declaration as 'std::ifstream F' 3 | ifstream F("treesmen.in"); | ^ main.cpp: In function 'void W(int, long long int, long long int)': main.cpp:22:10: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 22 | F[z].a+=a,F[z].b+=b,z=z+(z&(z^(z-1))); | ^ main.cpp:22:20: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 22 | F[z].a+=a,F[z].b+=b,z=z+(z&(z^(z-1))); | ^ main.cpp: In function 'long long int Q(int, int)': main.cpp:28:13: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 28 | a+=F[z].a,b+=F[z].b,z=z-(z&(z^(z-1))); | ^ main.cpp:28:23: error: no match for 'operator[]' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int') 28 | a+=F[z].a,b+=F[z].b,z=z-(z&(z^(z-1))); | ^ Non zero exit status: 1

Ceva nu functioneaza?