Borderou de evaluare (job #1337705)

Utilizator ladpro98Anh Duc Le ladpro98 Data 9 februarie 2015 13:25:12
Problema Adapost 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘double evaluate(point, std::vector<std::pair<double, double> >&)’: user.cpp:8:39: error: ‘typeof’ was not declared in this scope #define TR(it, a) for(typeof(a.begin()) it = a.begin(); it != a.end(); it++) ^ user.cpp:33:5: note: in expansion of macro ‘TR’ TR(it, a) sumDist += dist(C, *it); ^ user.cpp:33:8: error: expected ‘;’ before ‘it’ TR(it, a) sumDist += dist(C, *it); ^ user.cpp:8:41: note: in definition of macro ‘TR’ #define TR(it, a) for(typeof(a.begin()) it = a.begin(); it != a.end(); it++) ^ user.cpp:33:8: error: ‘it’ was not declared in this scope TR(it, a) sumDist += dist(C, *it); ^ user.cpp:8:57: note: in definition of macro ‘TR’ #define TR(it, a) for(typeof(a.begin()) it = a.begin(); it != a.end(); it++) ^ user.cpp: In function ‘int main()’: user.cpp:74:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("adapost2.in", "r", stdin); ^ user.cpp:75:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("adapost2.out", "w", stdout); ^

Ceva nu functioneaza?