Borderou de evaluare (job #1614331)

Utilizator iulian_f2kGuraliuc Iulian iulian_f2k Data 25 februarie 2016 21:42:06
Problema Dragoni Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void p2()’: user.cpp:6:13: error: ‘INT_MAX’ was not declared in this scope #define Inf INT_MAX/2 ^ user.cpp:52:24: note: in expansion of macro ‘Inf’ int a, b, c, sol = Inf, ins, dragAct; ^ user.cpp:65:5: error: ‘dragAct’ was not declared in this scope dragAct = 1; ^ user.cpp:72:9: error: ‘ins’ was not declared in this scope ins = Q.front().first; ^ user.cpp: In function ‘void p1()’: user.cpp:33:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &a, &b, &c); ^ user.cpp: In function ‘void p2()’: user.cpp:55:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &a, &b, &c); ^ user.cpp: In function ‘int main()’: user.cpp:105:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dragoni.in", "rt", stdin); ^ user.cpp:106:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dragoni.out", "wt", stdout); ^ user.cpp:108:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &p, &N, &M); ^ user.cpp:113:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^

Ceva nu functioneaza?