Borderou de evaluare (job #2405066)

Utilizator MoldovanAndrei1Moldovan Andrei MoldovanAndrei1 Data 13 aprilie 2019 21:24:37
Problema Rays Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:39:46: error: 'x' was not declared in this scope {cadr[++cnt1]=a;cadr[cnt1].x=min(x,y);cadr[cnt1].y=max(x,y);} ^ main.cpp:39:48: error: 'y' was not declared in this scope {cadr[++cnt1]=a;cadr[cnt1].x=min(x,y);cadr[cnt1].y=max(x,y);} ^ main.cpp:41:48: error: 'x' was not declared in this scope {cadr1[++cnt2]=a;cadr1[cnt2].x=max(x,y);cadr2[cnt2].y=max(x,y);} ^ main.cpp:41:50: error: 'y' was not declared in this scope {cadr1[++cnt2]=a;cadr1[cnt2].x=max(x,y);cadr2[cnt2].y=max(x,y);} ^ main.cpp:41:53: error: 'cadr2' was not declared in this scope {cadr1[++cnt2]=a;cadr1[cnt2].x=max(x,y);cadr2[cnt2].y=max(x,y);} ^~~~~ main.cpp:30:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("rays.in","r",stdin); ^ main.cpp:31:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("rays.out","w",stdout); ^ main.cpp:33:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ main.cpp:37:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&a.x,&a.y,&a.z); ^ Non zero exit status: 1

Ceva nu functioneaza?