Borderou de evaluare (job #1608606)

Utilizator OlivianOlivian Dan Cretu Olivian Data 22 februarie 2016 11:03:10
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
10ms272kbOK10
24ms260kbOK10
30ms316kbOK10
40ms340kbOK10
528ms340kbOK10
60ms572kbKilled by signal 11(SIGSEGV).0
70ms608kbKilled by signal 11(SIGSEGV).0
84ms908kbKilled by signal 11(SIGSEGV).0
94ms940kbKilled by signal 11(SIGSEGV).0
104ms956kbKilled by signal 11(SIGSEGV).0
Punctaj total50

Ceva nu functioneaza?