Borderou de evaluare (job #2626001)

Utilizator VarothexVartic Mihai-Vlad Varothex Data 6 iunie 2020 11:21:54
Problema Paranteze Status done
Runda Arhiva de probleme Compilator cpp-64 | 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?