Borderou de evaluare (job #2190904)
Utilizator | Data | 31 martie 2018 22:40:57 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:69:31: error: ‘ans’ was not declared in this scope
if(t==0){fin >> x; if(ans[t][x]==0) ans[t][x]=binsearch0(x); fout<<ans[t][x]<<endl; continue; }
^~~
user.cpp:69:76: error: ‘ans’ was not declared in this scope
if(t==0){fin >> x; if(ans[t][x]==0) ans[t][x]=binsearch0(x); fout<<ans[t][x]<<endl; continue; }
^~~
user.cpp:70:31: error: ‘ans’ was not declared in this scope
if(t==1){fin >> x; if(ans[t][x]==0) ans[t][x]=binsearch1(x); fout<<ans[t][x]<<endl; continue; }
^~~
user.cpp:70:76: error: ‘ans’ was not declared in this scope
if(t==1){fin >> x; if(ans[t][x]==0) ans[t][x]=binsearch1(x); fout<<ans[t][x]<<endl; continue; }
^~~
user.cpp:71:31: error: ‘ans’ was not declared in this scope
if(t==2){fin >> x; if(ans[t][x]==0) ans[t][x]=binsearch2(x); fout<<ans[t][x]<<endl; continue; }
^~~
user.cpp:71:76: error: ‘ans’ was not declared in this scope
if(t==2){fin >> x; if(ans[t][x]==0) ans[t][x]=binsearch2(x); fout<<ans[t][x]<<endl; continue; }
^~~
user.cpp: In function ‘long long int binsearch1(long long int)’:
user.cpp:45:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘long long int binsearch2(long long int)’:
user.cpp:58: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 !