Borderou de evaluare (job #2739178)
Utilizator | Data | 7 aprilie 2021 00:36:02 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int operatie_1(int, std::vector<int>&)':
main.cpp:14:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while( i < v.size() && ok==1 ){
~~^~~~~~~~~~
main.cpp:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int operatie_2(int, std::vector<int>&)':
main.cpp:24:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ( i < v.size() && ok == 1 ){
~~^~~~~~~~~~
main.cpp: In function 'int operatie_3(int, std::vector<int>)':
main.cpp:36:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ( i < v.size() && ok == 1 ){
~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:58:55: error: reference to 'hash' is ambiguous
if ( operatie == 1 ) operatie_1 ( numar , v [ hash ( numar , n ) ] );
^~~~
main.cpp:9:5: note: candidates are: int hash(int, int)
int hash( int x, int n){
^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5646:0,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp:59:55: error: reference to 'hash' is ambiguous
if ( operatie == 2 ) operatie_2 ( numar , v [ hash ( numar , n ) ] );
^~~~
main.cpp:9:5: note: candidates are: int hash(int, int)
int hash( int x, int n){
^~~~
In file included from /usr/include/c++/6/bits/basic_string.h:5646:0,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !