Borderou de evaluare (job #3192963)
Utilizator | Data | 13 ianuarie 2024 16:56:10 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:30:5: error: reference to 'hash' is ambiguous
30 | hash[0]=cif(b[0]);
| ^~~~
In file included from /usr/include/c++/12.2.1/string_view:43,
from /usr/include/c++/12.2.1/bits/basic_string.h:47,
from /usr/include/c++/12.2.1/string:53,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
main.cpp:9:5: note: 'int hash [2000000]'
9 | int hash[N];
| ^~~~
main.cpp:32:9: error: reference to 'hash' is ambiguous
32 | hash[i]=(1LL*hash[i-1]*baza+cif(b[i]));
| ^~~~
/usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
main.cpp:9:5: note: 'int hash [2000000]'
9 | int hash[N];
| ^~~~
main.cpp:32:22: error: reference to 'hash' is ambiguous
32 | hash[i]=(1LL*hash[i-1]*baza+cif(b[i]));
| ^~~~
/usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
main.cpp:9:5: note: 'int hash [2000000]'
9 | int hash[N];
| ^~~~
main.cpp:34:8: error: reference to 'hash' is ambiguous
34 | if(hash[asize-1]==cod)
| ^~~~
/usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
main.cpp:9:5: note: 'int hash [2000000]'
9 | int hash[N];
| ^~~~
main.cpp:41:13: error: reference to 'hash' is ambiguous
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !