Borderou de evaluare (job #2146885)
Utilizator | Data | 28 februarie 2018 12:02:56 | |
---|---|---|---|
Problema | Zeap | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:24: error: redefinition of ‘int val’
int rez,x,k,ch,line,nr,val,fr[300005]; string s,t[300005];
^
user.cpp:8:44: note: ‘int val’ previously declared here
int mn[1000005],mx[1000005],dif[1000005],n,val,v[300005],query[300005];
^
user.cpp: In function ‘void update(int, int, int, int)’:
user.cpp:64:8: error: ‘arb’ was not declared in this scope
mn[arb]=min(mn[arb*2],mn[arb*2+1]); if(mn[arb]==0) mn[arb]=mn[arb*2]+mn[arb*2+1];
^
user.cpp: In function ‘void upddif(int, int, int, int)’:
user.cpp:72:13: error: ‘arb’ was not declared in this scope
dif[arb]+=val;
^
user.cpp: In function ‘void add(int)’:
user.cpp:87:9: error: ‘i1’ was not declared in this scope
i1=i2=0;
^
user.cpp:87:12: error: ‘i2’ was not declared in this scope
i1=i2=0;
^
user.cpp:88:21: error: ‘query1’ was not declared in this scope
query1(1,1,n); ///cel mai mare numar mai mic decat x in i1
^
user.cpp:89:21: error: ‘query2’ was not declared in this scope
query2(1,1,n); ///cel mai mic numar mai mare decat x
^
user.cpp: In function ‘int main()’:
user.cpp:104:16: error: no match for ‘operator==’ (operand types are ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ and ‘char’)
if(t[i]=='I') add(query[i]);
^
In file included from /usr/include/c++/5/map:62:0,
from user.cpp:4:
/usr/include/c++/5/bits/stl_multimap.h:974:5: note: candidate: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
^
/usr/include/c++/5/bits/stl_multimap.h:974:5: note: template argument deduction/substitution failed:
user.cpp:104:18: note: ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>’
if(t[i]=='I') add(query[i]);
^
In file included from /usr/include/c++/5/map:61:0,
from user.cpp:4:
/usr/include/c++/5/bits/stl_map.h:1073:5: note: candidate: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x,
^
/usr/include/c++/5/bits/stl_map.h:1073:5: note: template argument deduction/substitution failed:
user.cpp:104:18: note: ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>’
if(t[i]=='I') add(query[i]);
^
In file included from /usr/include/c++/5/bits/stl_map.h:63:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !