Borderou de evaluare (job #1608608)

Utilizator OlivianOlivian Dan Cretu Olivian Data 22 februarie 2016 11:04:27
Problema Densitate Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void ciur()’: user.cpp:19:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=2*i;j<=N;j+=i) ^ user.cpp: In function ‘int main()’: user.cpp:44:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=] scanf("%d %d",&N,&q); ^ user.cpp:44:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=] user.cpp:47:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int m=1;m<=q;m++) ^ user.cpp:49:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=] scanf("%d %d",&x,&y); ^ user.cpp:49:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=] user.cpp:50:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] printf("%d \n",v2[y]-v2[x-1]); ^ 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("densitate.in","r",stdin); ^ user.cpp:43:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("densitate.out","w",stdout); ^ user.cpp:44:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&N,&q); ^ user.cpp:49:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&x,&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
24ms264kbOK10
30ms316kbOK10
40ms344kbOK10
528ms340kbOK10
660ms760kbOK10
768ms944kbOK10
876ms2460kbOK10
980ms2604kbOK10
1092ms2704kbOK10
Punctaj total100

Ceva nu functioneaza?