Borderou de evaluare (job #1861711)
Utilizator | Data | 29 ianuarie 2017 11:13:48 | |
---|---|---|---|
Problema | Secventa | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:16: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘int’)
fin >>a[i].val;
^
user.cpp:17:10: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘int’)
a[i].poz=i;
^
user.cpp:18:41: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘int’)
while(!q.empty()&&q.back().val>a[i].val)
^
user.cpp:20:22: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘int’)
q.push_back(a[i]);
^
user.cpp:22:5: error: ‘mini’ was not declared in this scope
mini=q.front().val;c1=1,c2=k;
^
user.cpp:22:24: error: ‘c1’ was not declared in this scope
mini=q.front().val;c1=1,c2=k;
^
user.cpp:22:29: error: ‘c2’ was not declared in this scope
mini=q.front().val;c1=1,c2=k;
^
user.cpp:26:15: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘long long int’)
fin>>a[i].val;a[i].poz=i;capat1++;capat2++;
^
user.cpp:26:24: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘long long int’)
fin>>a[i].val;a[i].poz=i;capat1++;capat2++;
^
user.cpp:29:41: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘long long int’)
while(!q.empty()&&q.back().val>a[i].val)
^
user.cpp:31:22: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘long long int’)
q.push_back(a[i]);
^
user.cpp:40:16: error: no match for ‘operator[]’ (operand types are ‘RaresHolmes’ and ‘long long int’)
fout<<a[i].val<<' ';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !