Borderou de evaluare (job #1539678)
Utilizator | Data | 1 decembrie 2015 12:44:14 | |
---|---|---|---|
Problema | Parc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:12: error: ‘int yn [2005]’ redeclared as different kind of symbol
int yn[2005];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/assert.h:37,
from /usr/include/c++/4.8/cassert:43,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:244:1: error: previous declaration of ‘double yn(int, double)’
__MATHCALL (yn,, (int, _Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:108:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yn[1] = o[fy].first - y1;
^
user.cpp:108:11: error: assignment of read-only location ‘*(yn + 1u)’
yn[1] = o[fy].first - y1;
^
user.cpp:108:11: error: cannot convert ‘int’ to ‘double(int, double)throw ()’ in assignment
user.cpp:110:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yn[i - fy + 1] = yn[i - fy] + o[i].first - o[i - 1].second;
^
user.cpp:110:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:110:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yn[i - fy + 1] = yn[i - fy] + o[i].first - o[i - 1].second;
^
user.cpp:110:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yn[i - fy + 1] = yn[i - fy] + o[i].first - o[i - 1].second;
^
user.cpp:110:61: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yn[i - fy + 1] = yn[i - fy] + o[i].first - o[i - 1].second;
^
user.cpp:110:24: error: assignment of read-only location ‘*(yn + (((sizetype)(i - fy)) + 1u))’
yn[i - fy + 1] = yn[i - fy] + o[i].first - o[i - 1].second;
^
user.cpp:110:24: error: cannot convert ‘double (*)(int, double)throw ()’ to ‘double(int, double)throw ()’ in assignment
user.cpp:115:32: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(xn[px] * dY == yn[py] * dX) {
^
user.cpp:115:36: error: invalid operands of types ‘double(int, double)throw ()’ and ‘int’ to binary ‘operator*’
if(xn[px] * dY == yn[py] * dX) {
^
user.cpp:120:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
else if(xn[px] * dY < yn[py] * dX) px ++;
^
user.cpp:120:40: error: invalid operands of types ‘double(int, double)throw ()’ and ‘int’ to binary ‘operator*’
else if(xn[px] * dY < yn[py] * dX) px ++;
^
user.cpp:93:9: warning: unused variable ‘X’ [-Wunused-variable]
int X = 0;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !