Borderou de evaluare (job #1226816)

Utilizator rzvrzvNicolescu Razvan rzvrzv Data 8 septembrie 2014 12:44:43
Problema Segmente Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:9: error: macro names must be identifiers #define 1000 1000 ^ user.cpp: In function ‘int distintersectie(segment, segment)’: user.cpp:21:28: error: ‘abs’ was not declared in this scope rez=min(abs(b.ys-a.ys),abs(b.ys-a.yd)); ^ user.cpp:27:28: error: ‘abs’ was not declared in this scope rez=min(abs(b.xj-a.xj), abs(b.xs-a.xj)); ^ user.cpp:30:30: error: ‘abs’ was not declared in this scope int rez1=min(abs(b.ys-a.ys),abs(b.ys-a.yd)); ^ user.cpp: In function ‘int main()’: user.cpp:53:9: error: ‘INT_MAX’ was not declared in this scope mini=INT_MAX; ^ user.cpp:38:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("segmente.in","r",stdin); ^ user.cpp:39:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("segmente.out","w",stdout); ^ user.cpp:42:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&seg.xj,&seg.xs,&seg.ys,&seg.yd); ^

Ceva nu functioneaza?