Borderou de evaluare (job #1468308)
Utilizator | Data | 5 august 2015 18:20:48 | |
---|---|---|---|
Problema | Secv | 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:22:9: error: ‘l’ was not declared in this scope
for(l=m-1,r=-1;l>1&&r==-1;l--) {
^
user.cpp:22:15: error: ‘r’ was not declared in this scope
for(l=m-1,r=-1;l>1&&r==-1;l--) {
^
user.cpp:30:17: error: ‘r’ was not declared in this scope
printf("%d",r);
^
user.cpp:4:76: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv.in","r",stdin),freopen("secv.out","w",stdout),scanf("%d",&n);
^
user.cpp:4:76: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:4:76: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:6:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",a+i);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !