Borderou de evaluare (job #2382888)

Utilizator bcosminbcosmin bcosmin Data 18 martie 2019 19:23:06
Problema Fibo4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:32: error: conflicting declaration 'long long int f [1010005]' long long v[1000005], f[1010005], n, i, j, m, k, st, dr; ^ main.cpp:4:10: note: previous declaration as 'std::ifstream f' ifstream f("fibo4.in"); ^ main.cpp: In function 'int main()': main.cpp:9:6: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[1] = f[2] = 1; ^ main.cpp:9:13: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[1] = f[2] = 1; ^ main.cpp:11:10: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'long long int') f[i] = ( f[i - 1] + f[i - 2] ) % Mod; ^ main.cpp:11:19: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'long long int') f[i] = ( f[i - 1] + f[i - 2] ) % Mod; ^ main.cpp:11:30: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'long long int') f[i] = ( f[i - 1] + f[i - 2] ) % Mod; ^ main.cpp:17:30: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'long long int') v[j] = ( v[j] + f[j + k - st] ) % Mod; ^ Non zero exit status: 1

Ceva nu functioneaza?