Borderou de evaluare (job #2149731)
Utilizator | Data | 2 martie 2018 22:15:35 | |
---|---|---|---|
Problema | Cifre | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int calcint(int, int, int, int, int)’:
user.cpp:21:4: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (poz==1)
^
user.cpp: In function ‘int main()’:
user.cpp:59:25: error: ‘nr’ was not declared in this scope
printf("%.4f\n",(double)nr/(double)(b-a+1));
^
user.cpp:51:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre.in","r",stdin);
^
user.cpp:52:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre.out","w",stdout);
^
user.cpp:54:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&a,&b,&c,&k);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !