Borderou de evaluare (job #1933456)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 20 martie 2017 18:42:32
Problema Patrate 3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool comparator(point, point)’: user.cpp:12:59: error: expected ‘;’ before ‘)’ token return (p1.x != p2.x) ? (p1.x < p2.x) : (p1.y < p2.y )); ^ user.cpp:12:59: error: expected primary-expression before ‘)’ token user.cpp:12:59: error: expected ‘;’ before ‘)’ token user.cpp: In function ‘int main()’: user.cpp:21:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("patrate3.in", "r", stdin); ^ user.cpp:22:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("patrate3.out", "w", stdout); ^ user.cpp:24:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:28:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf %lf", &xi, &yi); ^

Ceva nu functioneaza?