Borderou de evaluare (job #2665888)

Utilizator Remus.RughinisRemus Rughinis Remus.Rughinis Data 31 octombrie 2020 14:04:15
Problema Frumoasa Status done
Runda Simulare clasa a 9-a (lgput, invmod) Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:8:15: warning: unused variable 'fout' [-Wunused-variable] FILE *fin, *fout; ^~~~ main.c:7:23: warning: unused variable 'put' [-Wunused-variable] long long n,p,s,i,a,put; ^~~ main.c:7:21: warning: unused variable 'a' [-Wunused-variable] long long n,p,s,i,a,put; ^ main.c: At top level: main.c:18:5: error: expected identifier or '(' before 'else' } else ^~~~ main.c:25:3: warning: data definition has no type or storage class put=n-p; ^~~ main.c:25:3: warning: type defaults to 'int' in declaration of 'put' [-Wimplicit-int] main.c:25:7: error: 'n' undeclared here (not in a function) put=n-p; ^ main.c:25:9: error: 'p' undeclared here (not in a function) put=n-p; ^ main.c:26:3: warning: data definition has no type or storage class a=SIGMA-p; ^ main.c:26:3: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:27:3: error: expected identifier or '(' before 'while' while(put>0){ ^~~~~ main.c:36:3: warning: data definition has no type or storage class fout=fopen("frumoasa.out","w"); ^~~~ main.c:36:3: warning: type defaults to 'int' in declaration of 'fout' [-Wimplicit-int] main.c:36:8: warning: initialization makes integer from pointer without a cast [-Wint-conversion] fout=fopen("frumoasa.out","w"); ^~~~~ main.c:36:8: error: initializer element is not constant main.c:37:16: error: expected ')' before string constant fprintf(fout,"%lld\n",s); ^~~~~~~~ main.c:38:3: warning: data definition has no type or storage class fclose(fout); ^~~~~~ main.c:38:3: warning: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int] main.c:38:3: warning: parameter names (without types) in function declaration main.c:39:3: error: expected identifier or '(' before 'return' return 0; ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?