Borderou de evaluare (job #1669035)

Utilizator AlexNiuclaeNiculae Alexandru Vlad AlexNiuclae Data 30 martie 2016 12:01:04
Problema Xor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:10: error: ‘int y0’ redeclared as different kind of symbol int x0 , y0 , x1 , y1; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’ __MATHCALL (y0,, (_Mdouble_)); ^ user.cpp:6:20: error: ‘int y1’ redeclared as different kind of symbol int x0 , y0 , x1 , y1; ^ In file included from /usr/include/features.h:357:0, from /usr/include/assert.h:37, from /usr/include/c++/4.8/cassert:43, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:65:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d %d %d", &x0, &y0, &x1, &y1); ^ user.cpp:65:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘double (*)(double)throw ()’ [-Wformat=] user.cpp:67:47: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] printf("%d\n", solve(x0 , y0 , x1 , y1)); ^ user.cpp:36:5: error: initializing argument 2 of ‘int solve(int, int, int, int)’ [-fpermissive] int solve(int x0 , int y0 , int x1 , int y1) ^ user.cpp:67:47: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] printf("%d\n", solve(x0 , y0 , x1 , y1)); ^ user.cpp:36:5: error: initializing argument 4 of ‘int solve(int, int, int, int)’ [-fpermissive] int solve(int x0 , int y0 , int x1 , int y1) ^ user.cpp:59:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("xor.in","r",stdin); ^ user.cpp:60:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("xor.out","w",stdout); ^ user.cpp:63:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (scanf("%d %d", &tests, &mod); tests; tests--) ^ user.cpp:65:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &x0, &y0, &x1, &y1);

Ceva nu functioneaza?