Borderou de evaluare (job #1171080)
Utilizator | Data | 15 aprilie 2014 02:22:32 | |
---|---|---|---|
Problema | Matrice3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:9: error: ‘int y1’ redeclared as different kind of symbol
int x1, y1, x2, y2, Lmax;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void Query()’:
user.cpp:79:37: warning: format ‘%i’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%i%i%i%i",&x1,&y1,&x2,&y2);
^
user.cpp:80:28: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
Lmax = min((x2-x1),(y2-y1));
^
user.cpp:84:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1 += i;
^
user.cpp:84:12: error: assignment of function ‘double y1(double)’
user.cpp:84:12: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp:87:17: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
z2 = y2-y1+1;
^
user.cpp:89:41: error: invalid types ‘int [251][double(double)throw ()]’ for array subscript
maxim = max(max(D[o1][o2][x1][y1],D[o1][o2][x1+z1-pw[o1]][y1]),max(D[o1][o2][x1][y1+z2-pw[o2]],D[o1][o2][x1+z1-pw[o1]][y1+z2-pw[o2]]));
^
user.cpp:89:69: error: invalid types ‘int [251][double(double)throw ()]’ for array subscript
maxim = max(max(D[o1][o2][x1][y1],D[o1][o2][x1+z1-pw[o1]][y1]),max(D[o1][o2][x1][y1+z2-pw[o2]],D[o1][o2][x1+z1-pw[o1]][y1+z2-pw[o2]]));
^
user.cpp:89:93: warning: pointer to a function used in arithmetic [-Wpointer-arith]
maxim = max(max(D[o1][o2][x1][y1],D[o1][o2][x1+z1-pw[o1]][y1]),max(D[o1][o2][x1][y1+z2-pw[o2]],D[o1][o2][x1+z1-pw[o1]][y1+z2-pw[o2]]));
^
user.cpp:89:101: warning: pointer to a function used in arithmetic [-Wpointer-arith]
maxim = max(max(D[o1][o2][x1][y1],D[o1][o2][x1+z1-pw[o1]][y1]),max(D[o1][o2][x1][y1+z2-pw[o2]],D[o1][o2][x1+z1-pw[o1]][y1+z2-pw[o2]]));
^
user.cpp:89:102: error: invalid types ‘int [251][double (*)(double)throw ()]’ for array subscript
maxim = max(max(D[o1][o2][x1][y1],D[o1][o2][x1+z1-pw[o1]][y1]),max(D[o1][o2][x1][y1+z2-pw[o2]],D[o1][o2][x1+z1-pw[o1]][y1+z2-pw[o2]]));
^
user.cpp:89:131: warning: pointer to a function used in arithmetic [-Wpointer-arith]
maxim = max(max(D[o1][o2][x1][y1],D[o1][o2][x1+z1-pw[o1]][y1]),max(D[o1][o2][x1][y1+z2-pw[o2]],D[o1][o2][x1+z1-pw[o1]][y1+z2-pw[o2]]));
^
user.cpp:89:139: warning: pointer to a function used in arithmetic [-Wpointer-arith]
maxim = max(max(D[o1][o2][x1][y1],D[o1][o2][x1+z1-pw[o1]][y1]),max(D[o1][o2][x1][y1+z2-pw[o2]],D[o1][o2][x1+z1-pw[o1]][y1+z2-pw[o2]]));
^
user.cpp:89:140: error: invalid types ‘int [251][double (*)(double)throw ()]’ for array subscript
maxim = max(max(D[o1][o2][x1][y1],D[o1][o2][x1+z1-pw[o1]][y1]),max(D[o1][o2][x1][y1+z2-pw[o2]],D[o1][o2][x1+z1-pw[o1]][y1+z2-pw[o2]]));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !