Borderou de evaluare (job #1332320)

Utilizator pepsiM4A1Ozturk Arif pepsiM4A1 Data 1 februarie 2015 21:34:35
Problema Amici2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void BFS(int)’: user.cpp:21:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < G[act].size(); ++i) ^ user.cpp:28:50: error: ‘max’ was not declared in this scope diametru = max(diametru, d[vecin]); ^ user.cpp:28:50: note: suggested alternative: In file included from /usr/include/c++/4.8/deque:60:0, from /usr/include/c++/4.8/queue:60, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: ‘std::max’ max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ user.cpp: In function ‘int main()’: user.cpp:37:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("amici2.in","r",stdin); ^ user.cpp:38:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("amici2.out","w",stdout); ^ user.cpp:39:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:42:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&m); ^ user.cpp:47:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&a,&b); ^

Ceva nu functioneaza?