Borderou de evaluare (job #1294915)
Utilizator | Data | 18 decembrie 2014 14:37:52 | |
---|---|---|---|
Problema | Oite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cauta(int, int)’:
user.cpp:12:20: error: cannot convert ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’ to ‘int’ in return
return it;
^
user.cpp:15:12: error: cannot convert ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’ to ‘int’ in return
return it;
^
user.cpp: In function ‘int main()’:
user.cpp:18:10: error: ‘n’ was not declared in this scope
fin>>n>>L;
^
user.cpp:18:13: error: ‘L’ was not declared in this scope
fin>>n>>L;
^
user.cpp:19:9: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++){
^
user.cpp:22:9: error: ‘i’ was not declared in this scope
for(i=1;i<n;i++){
^
user.cpp:23:13: error: ‘j’ was not declared in this scope
for(j=i+1;j<=n;j++){
^
user.cpp:24:13: error: ‘s’ was not declared in this scope
s=v[i]+v[j];
^
user.cpp:26:17: error: ‘sum’ was not declared in this scope
sum=L-s;
^
user.cpp:27:34: error: ‘DIM’ was not declared in this scope
if(cauta(sum,sum%DIM)!=H[sum%DIM].end()){
^
user.cpp:28:21: error: ‘nr’ was not declared in this scope
nr++;
^
user.cpp:33:11: error: ‘nr’ was not declared in this scope
fout<<nr;
^
user.cpp: In function ‘int cauta(int, int)’:
user.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !