Borderou de evaluare (job #2719053)
Utilizator | Data | 9 martie 2021 15:35:42 | |
---|---|---|---|
Problema | Chei | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:5: error: expected ',' or ';' before 'ofstream'
ofstream out("chei.out")
^~~~~~~~
main.cpp:12:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
in>>sir+1;
~~~^~
main.cpp:14:9: error: 'i' was not declared in this scope
for(i=1;i<=l;i++)
^
main.cpp:18:9: error: 'i' was not declared in this scope
for(i=1;i<n;i++)
^
main.cpp:20:9: error: 'p1' was not declared in this scope
p1=(p1*baza)%mod1;
^~
main.cpp:21:9: error: 'p2' was not declared in this scope
p2=(p2*baza)%mod2;
^~
main.cpp:23:9: error: 'i' was not declared in this scope
for(i=1;i<=l/2;i++)
^
main.cpp:25:9: error: 'hash11' was not declared in this scope
hash11=(hash11*baza+sir[i])%mod1;
^~~~~~
main.cpp:26:9: error: 'hash22' was not declared in this scope
hash22=(hash22*baza+sir[i])%mod2;
^~~~~~
main.cpp:28:11: error: 'hash11' was not declared in this scope
v[1]={hash11,hash22};
^~~~~~
main.cpp:28:18: error: 'hash22' was not declared in this scope
v[1]={hash11,hash22};
^~~~~~
main.cpp:28:24: error: no match for 'operator=' (operand types are 'std::pair<int, int>' and '<brace-enclosed initializer list>')
v[1]={hash11,hash22};
^
In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/bits/stl_pair.h:363:7: note: candidate: std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__and_<std::is_copy_assignable<_Tp>, std::is_copy_assignable<_T2> >::value, const std::pair<_T1, _T2>&, const std::__wrap_nonesuch&>::type) [with _T1 = int; _T2 = int; typename std::conditional<std::__and_<std::is_copy_assignable<_Tp>, std::is_copy_assignable<_T2> >::value, const std::pair<_T1, _T2>&, const std::__wrap_nonesuch&>::type = const std::pair<int, int>&]
operator=(typename conditional<
^~~~~~~~
/usr/include/c++/6/bits/stl_pair.h:363:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::conditional<true, const std::pair<int, int>&, const std::__wrap_nonesuch&>::type {aka const std::pair<int, int>&}'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !