Borderou de evaluare (job #1207480)

Utilizator vendettaSalajan Razvan vendetta Data 13 iulie 2014 10:09:23
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:89:14: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’ buf(x); buf(y); ^ user.cpp:25:6: error: in passing argument 1 of ‘void buf(long long int&)’ void buf(long long &nr){ ^ user.cpp:89:22: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’ buf(x); buf(y); ^ user.cpp:25:6: error: in passing argument 1 of ‘void buf(long long int&)’ void buf(long long &nr){ ^ user.cpp:108:14: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’ buf(x); buf(y); ^ user.cpp:25:6: error: in passing argument 1 of ‘void buf(long long int&)’ void buf(long long &nr){ ^ user.cpp:108:22: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’ buf(x); buf(y); ^ user.cpp:25:6: error: in passing argument 1 of ‘void buf(long long int&)’ void buf(long long &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?