Borderou de evaluare (job #1237162)

Utilizator narcis_vsGemene Narcis - Gabriel narcis_vs Data 3 octombrie 2014 10:49:21
Problema Trenuri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void Preprocess()’: user.cpp:46:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int i = 1;i<=Euler[0]; ++i) ^ user.cpp:46:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:47:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] rmq[0][i] = Euler[i]; ^ user.cpp:47:28: error: invalid conversion from ‘void (*)(int, int)’ to ‘int’ [-fpermissive] user.cpp:48:19: error: ‘Pow’ was not declared in this scope for(int i = 2;Pow[i-1] <= ;++i) ^ user.cpp:48:31: error: expected primary-expression before ‘;’ token for(int i = 2;Pow[i-1] <= ;++i) ^ user.cpp:49:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int j = 1;j + Pow[j-1]<= Euler[0]; ++j) ^ user.cpp: In function ‘void Read()’: user.cpp:16:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trenuri2.in","r",stdin); ^ user.cpp:17:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trenuri2.out","w",stdout); ^

Ceva nu functioneaza?