Borderou de evaluare (job #1660120)

Utilizator Pintilie_AndreiFII-Pintilie Andrei Pintilie_Andrei Data 22 martie 2016 20:23:59
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:43:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] scanf("%d %ld",&n,&m); ^ user.cpp:44:25: error: ‘memset’ was not declared in this scope memset(a,0,sizeof(a)); ^ user.cpp:57:23: warning: unused variable ‘z’ [-Wunused-variable] long long z=suma(q); ^ user.cpp:58:23: warning: unused variable ‘y’ [-Wunused-variable] long long y=suma(p-1); ^ user.cpp:41:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("datorii.in","r",stdin); ^ user.cpp:42:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("datorii.out","w",stdout); ^ user.cpp:43:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %ld",&n,&m); ^ user.cpp:48:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ user.cpp:54:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&x,&p,&q); ^

Ceva nu functioneaza?