Borderou de evaluare (job #2765612)

Utilizator raica_cristiraica dumitru cristian raica_cristi Data 28 iulie 2021 15:29:42
Problema Text 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:18:12: error: expected '(' before 'c' if c != 0 { ^ main.cpp:24:8: error: expected '(' before 'c' if c != 0 { ^ main.cpp:27:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n",(lit-1)/(cuv-1)); ^ main.cpp:7:19: warning: unused variable 'n' [-Wunused-variable] long long int n,i,k,c,cuv=1,lit=1; ^ main.cpp:7:21: warning: unused variable 'i' [-Wunused-variable] long long int n,i,k,c,cuv=1,lit=1; ^ main.cpp:7:23: warning: unused variable 'k' [-Wunused-variable] long long int n,i,k,c,cuv=1,lit=1; ^ main.cpp:5:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("text.in","r",stdin); ^ 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("text.out","w",stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?