Borderou de evaluare (job #1628794)
Utilizator | Data | 4 martie 2016 10:38:18 | |
---|---|---|---|
Problema | Scara 3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:1: error: expected ‘,’ or ‘;’ before ‘int’
int n, k, j, viz[120], en[120], lep[120], kol[120];
^
user.cpp: In function ‘void beolvas()’:
user.cpp:12:8: error: ‘n’ was not declared in this scope
f>>n>>k;
^
user.cpp:12:11: error: ‘k’ was not declared in this scope
f>>n>>k;
^
user.cpp:13:28: error: ‘lep’ was not declared in this scope
for (int i=0;i<n;i++) {lep[i]=0;kol[i]=0;viz[i]=0;en[i]=0;}
^
user.cpp:13:37: error: ‘kol’ was not declared in this scope
for (int i=0;i<n;i++) {lep[i]=0;kol[i]=0;viz[i]=0;en[i]=0;}
^
user.cpp:13:46: error: ‘viz’ was not declared in this scope
for (int i=0;i<n;i++) {lep[i]=0;kol[i]=0;viz[i]=0;en[i]=0;}
^
user.cpp:13:55: error: ‘en’ was not declared in this scope
for (int i=0;i<n;i++) {lep[i]=0;kol[i]=0;viz[i]=0;en[i]=0;}
^
user.cpp:16:16: error: ‘viz’ was not declared in this scope
f>>viz[s-1];
^
user.cpp:18:8: error: ‘j’ was not declared in this scope
f>>j;
^
user.cpp:21:16: error: ‘en’ was not declared in this scope
f>>en[s-1];
^
user.cpp: In function ‘void csekkol()’:
user.cpp:26:5: error: ‘lep’ was not declared in this scope
lep[0]=1;
^
user.cpp:27:20: error: ‘n’ was not declared in this scope
for (int i=1;i<n;i++) {
^
user.cpp:29:9: error: ‘kol’ was not declared in this scope
kol[i]=kol[i-1];
^
user.cpp:31:24: error: ‘viz’ was not declared in this scope
if ((i-p)<=viz[p]) {
^
user.cpp:37:26: error: ‘en’ was not declared in this scope
if ((i-p)<=2*en[p]) {
^
user.cpp: In function ‘int main()’:
user.cpp:51:8: error: ‘lep’ was not declared in this scope
w<<lep[n-1]<<' '<<kol[n-1];
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !