Borderou de evaluare (job #2166072)

Utilizator geniucosOncescu Costin geniucos Data 13 martie 2018 15:25:00
Problema Delfin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:15: error: ‘int y1’ redeclared as different kind of symbol int N, M, x1, y1, x2, y2, xd, yd, d[3][1009][1009]; ^ In file included from /usr/include/features.h:367:0, from /usr/include/assert.h:35, from /usr/include/c++/5/cassert:43, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:33, from user.cpp:1: /usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘void read()’: user.cpp:20:50: error: assignment of function ‘double y1(double)’ if (sir[i][j] == 'S') x1 = i, y1 = j, sir[i][j] = 1; ^ user.cpp:20:50: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment user.cpp: In function ‘int main()’: user.cpp:64:23: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive] doBfs (x1, y1, d[1], 0); ^ user.cpp:33:6: note: initializing argument 2 of ‘void doBfs(int, int, int (*)[1009], bool)’ void doBfs (int x0, int y0, int d[][1009], bool isSpecial) ^ user.cpp: In function ‘void read()’: user.cpp:13:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d\n", &N, &M); ^ user.cpp:15:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%s", sir[i] + 1); ^ user.cpp: In function ‘int main()’: 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 ("delfin.in", "r", stdin); ^ user.cpp:61:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("delfin.out", "w", stdout); ^

Ceva nu functioneaza?