Borderou de evaluare (job #1216782)
Utilizator | Data | 5 august 2014 19:13:21 | |
---|---|---|---|
Problema | Joben | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:17: error: ‘int yn [26]’ redeclared as different kind of symbol
int xn[26],yn[26];
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
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 ‘void goleste()’:
user.cpp:20:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
xn[i]=yn[i]=0;
^
user.cpp:20:20: error: assignment of read-only location ‘*(yn + ((sizetype)i))’
xn[i]=yn[i]=0;
^
user.cpp:20:20: error: cannot convert ‘int’ to ‘double(int, double)throw ()’ in assignment
user.cpp: In function ‘int main()’:
user.cpp:41:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
yn[int(y[j])-97]++;
^
user.cpp:41:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:41:29: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(int, double)throw ()’ [-fpermissive]
yn[int(y[j])-97]++;
^
user.cpp:41:29: error: lvalue required as increment operand
user.cpp:44:42: error: invalid conversion from ‘double (*)(int, double)throw ()’ to ‘void*’ [-fpermissive]
qsort(yn,26,sizeof(int),comparare);
^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
from /usr/include/c++/4.8/ext/string_conversions.h:41,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/stdlib.h:761:13: error: initializing argument 1 of ‘void qsort(void*, size_t, size_t, __compar_fn_t)’ [-fpermissive]
extern void qsort (void *__base, size_t __nmemb, size_t __size,
^
user.cpp:47:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(xn[j]!=yn[j])
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !