Borderou de evaluare (job #1979038)

Utilizator assa98Andrei Stanciu assa98 Data 9 mai 2017 14:38:04
Problema Meow Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:24:14: error: ‘nod’ was not declared in this scope int intitial[nod][2]; ^ user.cpp:26:1: error: ‘map’ does not name a type map<int, int> dinamic[MAX_N]; ^ user.cpp: In function ‘int paths(int, int)’: user.cpp:32:17: error: ‘initial’ was not declared in this scope return (1LL * initial[nod][value + 1] * insus[dad[nod]][value - 1]) % MOD; ^ user.cpp:32:43: error: ‘insus’ was not declared in this scope return (1LL * initial[nod][value + 1] * insus[dad[nod]][value - 1]) % MOD; ^ user.cpp: In function ‘void update(int, int)’: user.cpp:44:5: error: ‘insus’ was not declared in this scope insus[nod][i] = insus[dad[nod]][i]; ^ user.cpp:46:3: error: ‘insus’ was not declared in this scope insus[nod][val[nod]] = (insus[nod][val[nod]] + insus[dad[nod]][val[nod] - 1]) % MOD;; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:51:10: error: ‘initial’ was not declared in this scope memset(initial[nod], 0, sizeof(initial[nod])); ^ user.cpp: In function ‘void reface()’: user.cpp:64:5: error: ‘insus’ was not declared in this scope insus[0][i] = 0; ^ user.cpp:66:3: error: ‘insus’ was not declared in this scope insus[0][0] = 1; ^ user.cpp:69:10: error: ‘initial’ was not declared in this scope ans = (initial[0][1] + (val[0] == 1) * initial[0][2]) % MOD; ^ user.cpp: In function ‘void readChunk(int&)’: user.cpp:89:37: error: expected ‘)’ before ‘;’ token memset(indexes, 0, sizeof(indexes); ^ user.cpp:91:9: error: no match for ‘operator<<’ (operand types are ‘std::ifstream {aka std::basic_ifstream<char>}’ and ‘int’) fin << newVal[i]; ^ user.cpp:91:9: note: candidates are: In file included from /usr/include/c++/4.8/string:52:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)

Ceva nu functioneaza?