Borderou de evaluare (job #1608605)

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

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
24ms272kbOK10
30ms324kbOK10
40ms344kbOK10
528ms348kbOK10
60ms492kbKilled by signal 11(SIGSEGV).0
70ms532kbKilled by signal 11(SIGSEGV).0
84ms840kbKilled by signal 11(SIGSEGV).0
94ms864kbKilled by signal 11(SIGSEGV).0
104ms876kbKilled by signal 11(SIGSEGV).0
Punctaj total50

Ceva nu functioneaza?