Pagini recente » Borderou de evaluare (job #2183396) | Borderou de evaluare (job #1027999) | Borderou de evaluare (job #2775466) | Borderou de evaluare (job #2135303) | Borderou de evaluare (job #1608608)
Borderou de evaluare (job #1608608)
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 |
1 | 0ms | 268kb | OK | 10 |
2 | 4ms | 264kb | OK | 10 |
3 | 0ms | 316kb | OK | 10 |
4 | 0ms | 344kb | OK | 10 |
5 | 28ms | 340kb | OK | 10 |
6 | 60ms | 760kb | OK | 10 |
7 | 68ms | 944kb | OK | 10 |
8 | 76ms | 2460kb | OK | 10 |
9 | 80ms | 2604kb | OK | 10 |
10 | 92ms | 2704kb | OK | 10 |
Punctaj total | 100 |