Borderou de evaluare (job #1578816)
Utilizator | Data | 24 ianuarie 2016 13:17:45 | |
---|---|---|---|
Problema | Charlie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:32: error: ‘int y1’ redeclared as different kind of symbol
int i,n=0,v[100001],p,m=0,ct=0,y1,y2,y3,x=0,z;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:90:11: error: assignment of function ‘double y1(double)’
y1=1;
^
user.cpp:90:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:91:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while(y1<n && y2!=-1 && y3!=-1)
^
user.cpp:93:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y2=verif(y1+1);
^
user.cpp:93:24: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
y2=verif(y1+1);
^
user.cpp:6:5: error: initializing argument 1 of ‘int verif(int)’ [-fpermissive]
int verif(int a)
^
user.cpp:97:27: error: invalid types ‘int [100001][double(double)throw ()]’ for array subscript
while(v[y1]>v[y2] && v[y2]<v[y3] && y3!=-1)
^
user.cpp:100:28: error: invalid types ‘int [100001][double(double)throw ()]’ for array subscript
if(v[y1]>v[y3])
^
user.cpp:101:33: error: invalid types ‘int [100001][double(double)throw ()]’ for array subscript
ct+=v[y1];
^
user.cpp:108:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
z=verifs(y1-1);
^
user.cpp:108:24: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
z=verifs(y1-1);
^
user.cpp:20:5: error: initializing argument 1 of ‘int verifs(int)’ [-fpermissive]
int verifs(int a)
^
user.cpp:110:19: error: assignment of function ‘double y1(double)’
y1=z;
^
user.cpp:110:19: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !