Borderou de evaluare (job #499112)

Utilizator avatar georgecristian Raducanu George-Cristian georgecristian IP ascuns
Problemă Acoperire Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 31 oct. 2019 16:35:07 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function 'int main()': user.cpp:26:21: error: conflicting declaration 'interval a [10005]' user.cpp:24:9: error: 'a' has a previous declaration as 'int a' user.cpp:30:17: error: invalid types 'int[int]' for array subscript user.cpp:30:26: error: invalid types 'int[int]' for array subscript user.cpp:34:9: error: redeclaration of 'int nr' user.cpp:24:20: error: 'int nr' previously declared here user.cpp:37:15: error: invalid types 'int[int]' for array subscript user.cpp:39:15: error: invalid types 'int[int]' for array subscript user.cpp:47:29: error: 'v' was not declared in this scope user.cpp:24:15: warning: unused variable 'ct' [-Wunused-variable] In file included from /usr/include/c++/4.6/algorithm:63:0, from user.cpp:3: /usr/include/c++/4.6/bits/stl_algo.h: In function 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]': user.cpp:32:23: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:5434:2: error: no type named 'value_type' in 'struct std::iterator_traits<int>' /usr/include/c++/4.6/bits/stl_algo.h: In function 'void std::partial_sort(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]': /usr/include/c++/4.6/bits/stl_algo.h:2301:8: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int, _Size = int, _Compare = bool (*)(interval, interval)]' /usr/include/c++/4.6/bits/stl_algo.h:5445:4: instantiated from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]' user.cpp:32:23: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:5285:2: error: no type named 'value_type' in 'struct std::iterator_traits<int>' /usr/include/c++/4.6/bits/stl_algo.h: In function '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int, _Compare = bool (*)(interval, interval)]': /usr/include/c++/4.6/bits/stl_algo.h:2306:62: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int, _Size = int, _Compare = bool (*)(interval, interval)]' /usr/include/c++/4.6/bits/stl_algo.h:5445:4: instantiated from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]' user.cpp:32:23: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:2265:78: error: invalid type argument of unary '*' (have 'int') /usr/include/c++/4.6/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int, _Compare = bool (*)(interval, interval)]': /usr/include/c++/4.6/bits/stl_algo.h:2196:4: instantiated from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int, _Compare = bool (*)(interval, interval)]' /usr/include/c++/4.6/bits/stl_algo.h:5447:4: instantiated from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]' user.cpp:32:23: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:2129:4: error: invalid type argument of unary '*' (have 'int') /usr/include/c++/4.6/bits/stl_algo.h:2129:4: error: invalid type argument of unary '*' (have 'int') /usr/include/c++/4.6/bits/stl_algo.h:2132:3: error: no type named 'value_type' in 'struct std::iterator_traits<int>' /usr/include/c++/4.6/bits/stl_algo.h:2196:4: instantiated from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int, _Compare = bool (*)(interval, interval)]' /usr/include/c++/4.6/bits/stl_algo.h:5447:4: instantiated from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]' user.cpp:32:23: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:2132:3: error: no type named 'value_type' in 'struct std::iterator_traits<int>' /usr/include/c++/4.6/bits/stl_algo.h:2134:8: error: invalid type argument of unary '*' (have 'int') /usr/include/c++/4.6/bits/stl_algo.h: In function 'void std::__unguarded_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int, _Compare = bool (*)(interval, interval)]': /usr/include/c++/4.6/bits/stl_algo.h:2197:4: instantiated from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int, _Compare = bool (*)(interval, interval)]' /usr/include/c++/4.6/bits/stl_algo.h:5447:4: instantiated from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]' user.cpp:32:23: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:2161:2: error: no type named 'value_type' in 'struct std::iterator_traits<int>' /usr/include/c++/4.6/bits/stl_algo.h: In function 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int, _Compare = bool (*)(interval, interval)]': /usr/include/c++/4.6/bits/stl_algo.h:5295:7: instantiated from 'void std::partial_sort(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]' /usr/include/c++/4.6/bits/stl_algo.h:2301:8: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int, _Size = int, _Compare = bool (*)(interval, interval)]' /usr/include/c++/4.6/bits/stl_algo.h:5445:4: instantiated from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = int, _Compare = bool (*)(interval, interval)]' user.cpp:32:23: instantiated from here /usr/include/c++/4.6/bits/stl_algo.h:1918:2: error: invalid type argument of unary '*' (have 'int') /usr/include/c++/4.6/bits/stl_algo.h:1918:2: error: invalid type argument of unary '*' (have 'int')