Borderou de evaluare (job #1327927)

Utilizator turbowin120Amarandei-Stanescu Alexandru turbowin120 Data 27 ianuarie 2015 16:37:47
Problema Checkin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:22:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] fscanf(in,"%d%d", g[i].bag,g[i].bil); ^ user.cpp:22:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=] In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:1: /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’: /usr/include/c++/4.8/bits/stl_algo.h:2250:70: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ /usr/include/c++/4.8/bits/stl_algo.h:5514:55: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ user.cpp:39:23: required from here /usr/include/c++/4.8/bits/stl_algo.h:2183:4: error: could not convert ‘__comp((*(const ghiseu*)__i), (*(const ghiseu*)__first))’ from ‘ghiseu’ to ‘bool’ if (__comp(*__i, *__first)) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’: /usr/include/c++/4.8/bits/stl_algo.h:5363:59: required from ‘void std::partial_sort(_RAIter, _RAIter, _RAIter, _Compare) [with _RAIter = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ /usr/include/c++/4.8/bits/stl_algo.h:2355:68: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = ghiseu*; _Size = int; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ user.cpp:39:23: required from here /usr/include/c++/4.8/bits/stl_algo.h:1972:2: error: could not convert ‘__comp((*(const ghiseu*)__i), (*(const ghiseu*)__first))’ from ‘ghiseu’ to ‘bool’ if (__comp(*__i, *__first)) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__move_median_first(_Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’: /usr/include/c++/4.8/bits/stl_algo.h:2318:68: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ /usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = ghiseu*; _Size = int; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ user.cpp:39:23: required from here /usr/include/c++/4.8/bits/stl_algo.h:110:7: error: could not convert ‘__comp((*(const ghiseu*)__a), (*(const ghiseu*)__b))’ from ‘ghiseu’ to ‘bool’ if (__comp(*__a, *__b)) ^ /usr/include/c++/4.8/bits/stl_algo.h:112:4: error: could not convert ‘__comp((*(const ghiseu*)__b), (*(const ghiseu*)__c))’ from ‘ghiseu’ to ‘bool’ if (__comp(*__b, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:114:9: error: could not convert ‘__comp((*(const ghiseu*)__a), (*(const ghiseu*)__c))’ from ‘ghiseu’ to ‘bool’ else if (__comp(*__a, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:117:12: error: could not convert ‘__comp((*(const ghiseu*)__a), (*(const ghiseu*)__c))’ from ‘ghiseu’ to ‘bool’ else if (__comp(*__a, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h:119:12: error: could not convert ‘__comp((*(const ghiseu*)__b), (*(const ghiseu*)__c))’ from ‘ghiseu’ to ‘bool’ else if (__comp(*__b, *__c)) ^ /usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = ghiseu*; _Tp = ghiseu; _Compare = ghiseu (*)(ghiseu, ghiseu)]’: /usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ /usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = ghiseu*; _Size = int; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ /usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = ghiseu*; _Compare = ghiseu (*)(ghiseu, ghiseu)]’ user.cpp:39:23: required from here /usr/include/c++/4.8/bits/stl_algo.h:2287:4: error: could not convert ‘__comp((*(const ghiseu*)__first), (* & __pivot))’ from ‘ghiseu’ to ‘bool’ while (__comp(*__first, __pivot)) ^

Ceva nu functioneaza?