Borderou de evaluare (job #1207479)

Utilizator vendettaSalajan Razvan vendetta Data 13 iulie 2014 10:08:53
Problema TractoMarm Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void next()’: user.cpp:20:23: error: ‘Cifmax’ was not declared in this scope ++poz; if (poz == Cifmax){ ^ user.cpp: In function ‘void dfs(int)’: user.cpp:56:76: warning: operation on ‘sumStv[0]’ may be undefined [-Wsequence-point] sumCnt[ ++sumCnt[0] ] = sumCnt[ sumCnt[0]-1] + withoutNode[ node ];//, ^ user.cpp:56:76: warning: operation on ‘sumCnt[0]’ may be undefined [-Wsequence-point] user.cpp: In function ‘int main()’: user.cpp:85:10: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’ buf(n); ^ user.cpp:25:6: error: in passing argument 1 of ‘void buf(int&)’ void buf(int &nr){ ^ user.cpp:105:10: error: invalid initialization of reference of type ‘int&’ from expression of type ‘long long int’ buf(m); ^ user.cpp:25:6: error: in passing argument 1 of ‘void buf(int&)’ void buf(int &nr){ ^ user.cpp:81:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tractomarm.in", "r", stdin); ^ user.cpp:82:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tractomarm.out", "w", stdout); ^

Ceva nu functioneaza?