Borderou de evaluare (job #2166637)
Utilizator | Data | 13 martie 2018 18:04:59 | |
---|---|---|---|
Problema | Tort3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:43: error: ‘int j1’ redeclared as different kind of symbol
int n, m, l, dp[Nmax][Nmax], i, j, k, i1, j1;
^
In file included from /usr/include/features.h:367:0,
from /usr/include/assert.h:35,
from /usr/include/c++/5/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/bits/mathcalls.h:248:1: note: previous declaration ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:42:31: error: assignment of function ‘double j1(double)’
for(j1=j-l+1; j1<=j; ++j1)
^
user.cpp:42:31: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:42:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(j1=j-l+1; j1<=j; ++j1)
^
user.cpp:42:48: warning: ISO C++ forbids incrementing a pointer of type ‘double (*)(double) throw ()’ [-Wpointer-arith]
for(j1=j-l+1; j1<=j; ++j1)
^
user.cpp:42:48: error: lvalue required as increment operand
user.cpp:43:37: error: invalid types ‘char [505][double(double) throw ()]’ for array subscript
a[i1][j1] = 0;
^
user.cpp:46:31: error: assignment of function ‘double j1(double)’
for(j1=j-l+1; j1<=j+l-1 && j1<=m; ++j1)
^
user.cpp:46:31: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:46:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(j1=j-l+1; j1<=j+l-1 && j1<=m; ++j1)
^
user.cpp:46:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(j1=j-l+1; j1<=j+l-1 && j1<=m; ++j1)
^
user.cpp:46:61: warning: ISO C++ forbids incrementing a pointer of type ‘double (*)(double) throw ()’ [-Wpointer-arith]
for(j1=j-l+1; j1<=j+l-1 && j1<=m; ++j1)
^
user.cpp:46:61: error: lvalue required as increment operand
user.cpp:47:38: error: invalid types ‘int [505][double(double) throw ()]’ for array subscript
dp[i1][j1] = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !