Borderou de evaluare (job #964770)
Utilizator | Data | 22 iunie 2013 12:45:56 | |
---|---|---|---|
Problema | Alianta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:31: error: ‘int y1’ redeclared as different kind of symbol
int T,nr,maxi,aux,mod,i,j,n,m,y1,nrb[1026];
^
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 ‘int main()’:
user.cpp:47:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d",&y1);
^
user.cpp:49:11: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y1--;
^
user.cpp:49:11: error: lvalue required as decrement operand
user.cpp:50:25: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator<<’
if(list[x1]&(1<<y1)) list[x1]-=(1<<y1);
^
user.cpp:50:44: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator<<’
if(list[x1]&(1<<y1)) list[x1]-=(1<<y1);
^
user.cpp:51:19: error: invalid types ‘int [40][double(double)throw ()]’ for array subscript
if(list[y1]&(1<<x1)) list[y1]-=(1<<x1);
^
user.cpp:51:37: error: invalid types ‘int [40][double(double)throw ()]’ for array subscript
if(list[y1]&(1<<x1)) list[y1]-=(1<<x1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !