Borderou de evaluare (job #2625993)
Utilizator | Data | 6 iunie 2020 11:19:08 | |
---|---|---|---|
Problema | Paranteze | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:8: error: 'gets' was not declared in this scope
gets(s);
^
main.cpp:20:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(a[l]>0)
^
main.cpp:25:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(a[l]<0)
^
main.cpp:6:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("paranteze.in","r",stdin);
^
main.cpp:7:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("paranteze.out","w",stdout);
^
main.cpp:8:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld\n",&n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !