Borderou de evaluare (job #1054196)
Utilizator | Data | 13 decembrie 2013 14:40:06 | |
---|---|---|---|
Problema | Radio2 | Status | done |
Runda | Teme Pregatire ACM Unibuc 2013 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:33: error: ‘int y1’ redeclared as different kind of symbol
int n,m,l,k,len,b,x,p,u,mm,z,z1,y1,x1;
^
In file included from /usr/include/features.h:346:0,
from /usr/include/stdio.h:28,
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:61:11: error: assignment of function ‘double y1(double)’
y1=0;
^
user.cpp:61:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:66:20: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator*’
y1=(y1*b+w[i])%mod1;
^
user.cpp:71:22: error: invalid types ‘std::vector<int> [666017][double(double)throw ()]’ for array subscript
int hy1=h1[y1].size();
^
user.cpp:74:35: error: invalid types ‘std::vector<int> [666017][double(double)throw ()]’ for array subscript
if(h[y][ii]==h1[y1][jj]){
^
user.cpp:6:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
#define mod1 666017
^
user.cpp:90:35: note: in expansion of macro ‘mod1’
y1=(y1-(w[ii-len]*x1)%mod1+mod1)%mod1;
^
user.cpp:6:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
#define mod1 666017
^
user.cpp:90:40: note: in expansion of macro ‘mod1’
y1=(y1-(w[ii-len]*x1)%mod1+mod1)%mod1;
^
user.cpp:6:14: error: invalid operands of types ‘double (*)(double)throw ()’ and ‘int’ to binary ‘operator%’
#define mod1 666017
^
user.cpp:90:46: note: in expansion of macro ‘mod1’
y1=(y1-(w[ii-len]*x1)%mod1+mod1)%mod1;
^
user.cpp:91:15: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator*’
y1*=b;
^
user.cpp:91:15: error: in evaluation of ‘operator*=(double(double)throw (), int)’
user.cpp:92:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1+=w[ii];
^
user.cpp:92:15: error: assignment of function ‘double y1(double)’
user.cpp:92:15: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !