Borderou de evaluare (job #1802196)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 9 noiembrie 2016 22:39:41
Problema Matrice3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:8: error: ‘int y1’ redeclared as different kind of symbol int x1,y1,x2,y2; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, 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:45:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=] fscanf(f,"%d%d%d%d",&x1,&y1,&x2,&y2); ^ user.cpp:47:15: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’ dy=y2-y1; ^ user.cpp:55:38: error: invalid types ‘unsigned char [255][double(double)throw ()]’ for array subscript rez=max(max(dp[P1][P2][x1][y1],dp[P1][P2][x1][y2-(1<<P2)+1]),max(dp[P1][P2][x2-(1<<P1)+1][y1],dp[P1][P2][x2-(1<<P1)+1][y2-(1<<P2)+1])); ^ user.cpp:55:101: error: invalid types ‘unsigned char [255][double(double)throw ()]’ for array subscript rez=max(max(dp[P1][P2][x1][y1],dp[P1][P2][x1][y2-(1<<P2)+1]),max(dp[P1][P2][x2-(1<<P1)+1][y1],dp[P1][P2][x2-(1<<P1)+1][y2-(1<<P2)+1])); ^ user.cpp:14:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d %d\n",&N,&M,&Q); ^ user.cpp:45:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d%d",&x1,&y1,&x2,&y2); ^

Ceva nu functioneaza?