Borderou de evaluare (job #2258335)

Utilizator Vaida_Radu_AndreiVaida Radu Andrei Vaida_Radu_Andrei Data 11 octombrie 2018 11:27:23
Problema GFact Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void eratostene()’: user.cpp:12:9: error: ‘i’ was not declared in this scope for(i=4;l<45000;l+=2) ^ user.cpp: In function ‘void cit()’: user.cpp:33:9: error: ‘i’ was not declared in this scope for(i=3;i*i<=n;i+=2) ^ user.cpp:34:22: error: expected primary-expression before ‘)’ token if(!prim[i]&&) ^ user.cpp:50:9: error: ‘i’ was not declared in this scope for(i=0;i<n;i++) ^ user.cpp: In function ‘long int pow(int, int)’: user.cpp:58:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘long int ap(long int, long int)’: user.cpp:61:14: warning: unused variable ‘s’ [-Wunused-variable] long int s,a=1,b=z; ^ user.cpp:61:20: warning: unused variable ‘b’ [-Wunused-variable] long int s,a=1,b=z; ^ user.cpp:67:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘void af()’: user.cpp:77:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d",s); ^ user.cpp: In function ‘void cit()’: user.cpp:22:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&y); ^

Ceva nu functioneaza?