Borderou de evaluare (job #2147506)

Utilizator mirupetPetcan Miruna mirupet Data 28 februarie 2018 19:50:23
Problema Cartite Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:9: error: ‘int y1’ redeclared as different kind of symbol int x1, y1, x2, y2; ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482, from /usr/include/c++/5/cstdio:41, from user.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘void Solve1()’: user.cpp:68:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double) throw ()’ [-Wformat=] scanf("%d%d%d%d", &x1, &y1, &x2, &y2); ^ user.cpp:69:23: error: invalid types ‘int [204][double(double) throw ()]’ for array subscript if (lee[x1][y1] != -1 && lee[x1][y1] < sol) {sol = lee[x1][y1], indi = x1, indj = y1;} ^ user.cpp:69:44: error: invalid types ‘int [204][double(double) throw ()]’ for array subscript if (lee[x1][y1] != -1 && lee[x1][y1] < sol) {sol = lee[x1][y1], indi = x1, indj = y1;} ^ user.cpp:69:77: error: invalid types ‘int [204][double(double) throw ()]’ for array subscript if (lee[x1][y1] != -1 && lee[x1][y1] < sol) {sol = lee[x1][y1], indi = x1, indj = y1;} ^ user.cpp:69:96: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive] if (lee[x1][y1] != -1 && lee[x1][y1] < sol) {sol = lee[x1][y1], indi = x1, indj = y1;} ^ user.cpp: In function ‘void Solve2()’: user.cpp:83:45: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double) throw ()’ [-Wformat=] scanf("%d%d%d%d", &x1, &y1, &x2, &y2); ^ user.cpp:84:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] x = (x1 - 1) * M + y1; ^ user.cpp:84:26: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive] x = (x1 - 1) * M + y1; ^ user.cpp:125:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < sol.size(); i++){ ^ user.cpp: In function ‘void Solve1()’: user.cpp:64:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &G); ^ user.cpp:68:46: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &x1, &y1, &x2, &y2); ^ user.cpp: In function ‘void Solve2()’: user.cpp:78:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &G);

Ceva nu functioneaza?