Borderou de evaluare (job #1243008)
Utilizator | Data | 15 octombrie 2014 14:40:58 | |
---|---|---|---|
Problema | Lupul Urias si Rau | 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:17:21: error: ‘n’ was not declared in this scope
scanf("%d%d%d",&n,&dist,&l);
^
user.cpp:17:24: error: ‘dist’ was not declared in this scope
scanf("%d%d%d",&n,&dist,&l);
^
user.cpp:17:30: error: ‘l’ was not declared in this scope
scanf("%d%d%d",&n,&dist,&l);
^
user.cpp:18:10: error: ‘i’ was not declared in this scope
for (i=1;i<=n;++i)
^
user.cpp:20:23: error: ‘d’ was not declared in this scope
scanf("%d%d",&d[i],&a[i]);
^
user.cpp:20:29: error: ‘a’ was not declared in this scope
scanf("%d%d",&d[i],&a[i]);
^
user.cpp:21:9: error: ‘T’ was not declared in this scope
T[i].val=(dist-d[i])/l+1;
^
user.cpp:24:13: error: ‘T’ was not declared in this scope
int Max=T[1].val;
^
user.cpp:28:9: error: ‘i’ was not declared in this scope
i=1;
^
user.cpp:30:5: error: expected primary-expression before ‘}’ token
}
^
user.cpp:30:5: error: expected ‘;’ before ‘}’ token
user.cpp:15:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lupu.in","r",stdin);
^
user.cpp:16:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lupu.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !