Borderou de evaluare (job #724132)

Utilizator avatar EroareDeCompilare Andrei Postolache EroareDeCompilare IP ascuns
Problemă Paranteze Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 16 iun. 2023 19:53:10 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void paranteza(int, int)': main.cpp:24:26: error: expected ';' before '}' token 24 | putchar(v[i]) | ^ | ; 25 | } | ~ main.cpp:26:22: error: expected ';' before '}' token 26 | putchar('\n') | ^ | ; 27 | } | ~ main.cpp:20:9: warning: unused variable 'i' [-Wunused-variable] 20 | int i; | ^ main.cpp: In function 'int main()': main.cpp:43:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 43 | freopen("paranteze.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:44:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 44 | freopen("paranteze.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:45:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 45 | scanf("%d",&k); | ~~~~~^~~~~~~~~