Borderou de evaluare (job #1661178)
Utilizator | Data | 23 martie 2016 17:52:34 | |
---|---|---|---|
Problema | Diff | 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:33:21: error: ‘d’ was not declared in this scope
scanf("%d",&d); p=-1; r=-1;
^
user.cpp:33:25: error: ‘p’ was not declared in this scope
scanf("%d",&d); p=-1; r=-1;
^
user.cpp:33:31: error: ‘r’ was not declared in this scope
scanf("%d",&d); p=-1; r=-1;
^
user.cpp:22:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("diff.in","r",stdin);
^
user.cpp:23:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("diff.out","w",stdout);
^
user.cpp:24:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&t);
^
user.cpp:27:26: 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 !