Borderou de evaluare (job #2206756)

Utilizator memecoinMeme Coin memecoin Data 23 mai 2018 18:34:37
Problema Pipe Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:0: warning: "INFINITY" redefined #define INFINITY 0x3f3f3f3f In file included from /usr/include/math.h:41:0, from /usr/include/c++/6/cmath:45, from /usr/include/c++/6/math.h:36, from user.cpp:4: /usr/include/bits/inf.h:26:0: note: this is the location of the previous definition # define INFINITY (__builtin_inff()) user.cpp: In function ‘int solve(std::vector<int>, int)’: user.cpp:23:33: error: ‘memset’ was not declared in this scope memset(best, 0X3f, sizeof(best)); ^ user.cpp:27:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= a.size(); ++i) { ~~^~~~~~~~~~~ user.cpp:54:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= a.size(); ++i) { ~~^~~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:64:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pipe.in", "r", stdin); ^ user.cpp:65:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pipe.out", "w", stdout); ^ user.cpp:67:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:68:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &sx, &sy); ^ user.cpp:69:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &dx, &dy); ^ user.cpp:75:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c %d\n", &c, &l); ^

Ceva nu functioneaza?