Borderou de evaluare (job #2361658)

Utilizator greelioGreenio Greely greelio Data 2 martie 2019 17:43:37
Problema Lupul Urias si Rau Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:1: error: 'rs' does not name a type rs; ^~ main.cpp: In function 'int main()': main.cpp:3:11: warning: unused variable 'first' [-Wunused-variable] #define x first ^ main.cpp:19:13: note: in expansion of macro 'x' int x,y; scanf("%d %d", &a[i].y, &a[i].x); ^ main.cpp:4:11: warning: unused variable 'second' [-Wunused-variable] #define y second ^ main.cpp:19:15: note: in expansion of macro 'y' int x,y; scanf("%d %d", &a[i].y, &a[i].x); ^ main.cpp:32:9: error: 'rs' was not declared in this scope rs+=t.x; ^~ main.cpp:4:11: warning: unused variable 'second' [-Wunused-variable] #define y second ^ main.cpp:31:12: note: in expansion of macro 'y' ll y=it->y; ^ main.cpp:35:11: error: 'rs' was not declared in this scope cout<<rs; ^~ main.cpp:15:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("lupu.in", "r", stdin); ^ main.cpp:16:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("lupu.out", "w", stdout); ^ main.cpp:17:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &n, &x, &l); ^ main.cpp:19:50: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] int x,y; scanf("%d %d", &a[i].y, &a[i].x); ^ Non zero exit status: 1

Ceva nu functioneaza?