Borderou de evaluare (job #1279664)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:29:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=]
scanf("%d%d%d",&n,&l,&u);
^
user.cpp:29:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=]
user.cpp:29:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long unsigned int*’ [-Wformat=]
user.cpp:31:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=]
scanf("%d",&v[i]);
^
user.cpp:33:37: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld",Count(u)-Count(l-1));
^
user.cpp:27:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("secv5.in","r",stdin);
^
user.cpp:28:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("secv5.out","w",stdout);
^
user.cpp:29:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&l,&u);
^
user.cpp:31:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 288kb | Incorect | 0 |
2 | 4ms | 308kb | Incorect | 0 |
3 | 12ms | 368kb | Incorect | 0 |
4 | 56ms | 648kb | Incorect | 0 |
5 | 60ms | 784kb | Incorect | 0 |
6 | 228ms | 1432kb | Incorect | 0 |
7 | 576ms | 3104kb | Incorect | 0 |
8 | 700ms | 4224kb | Incorect | 0 |
9 | 848ms | 8456kb | Incorect | 0 |
10 | 1768ms | 11260kb | Incorect | 0 |
Punctaj total | 0 |