Borderou de evaluare (job #219118)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Loto ( clasa a 6-a ) | Compilator | cpp |
| Rundă | runda1_pregatire_j6 | Status | evaluat |
| Dată | 8 mar. 2016 22:54:19 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:21: error: ‘int select [7]’ redeclared as different kind of symbol
/usr/include/i386-linux-gnu/sys/select.h:107:12: error: previous declaration of ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’
user.cpp: In function ‘int main()’:
user.cpp:18:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:18:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ [-Wformat]
user.cpp:22:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:22:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:28:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:28:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:30:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:30:29: error: invalid conversion from ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ to ‘int’ [-fpermissive]
user.cpp:33:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:33:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:35:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:35:29: error: invalid conversion from ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ to ‘int’ [-fpermissive]
user.cpp:59:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:59:29: error: assignment of read-only location ‘*(select + ((unsigned int)pozminimal))’
user.cpp:59:29: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment
user.cpp:80:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:80:29: error: assignment of read-only location ‘*(select + ((unsigned int)pozmaximal))’
user.cpp:80:29: error: cannot convert ‘int’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment
user.cpp:81:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:81:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:84:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:84:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ [-Wformat]
In file included from /usr/include/c++/4.6/algorithm:63:0,
from user.cpp:2:
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::sort(_RAIter, _RAIter) [with _RAIter = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’:
user.cpp:81:36: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:5407:4: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*), _Size = int]’:
/usr/include/c++/4.6/bits/stl_algo.h:5407:4: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’
user.cpp:81:36: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:2275:7: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’:
/usr/include/c++/4.6/bits/stl_algo.h:5409:4: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’
user.cpp:81:36: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:2179:7: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’:
/usr/include/c++/4.6/bits/stl_algo.h:2284:54: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*), _Size = int]’
/usr/include/c++/4.6/bits/stl_algo.h:5407:4: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’
user.cpp:81:36: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:2251:68: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
/usr/include/c++/4.6/bits/stl_algo.h: In function ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’:
/usr/include/c++/4.6/bits/stl_algo.h:2181:4: instantiated from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’
/usr/include/c++/4.6/bits/stl_algo.h:5409:4: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’
user.cpp:81:36: instantiated from here
/usr/include/c++/4.6/bits/stl_algo.h:2105:50: error: ISO C++ forbids incrementing a pointer of type ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ [-fpermissive]
/usr/include/c++/4.6/bits/stl_algo.h:2110:3: error: variable ‘__val’ has function type
/usr/include/c++/4.6/bits/stl_algo.h:2181:4: instantiated from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)]’