Pagini recente » Borderou de evaluare (job #2435646) | Borderou de evaluare (job #1221525) | Borderou de evaluare (job #2435921) | Borderou de evaluare (job #2814203) | Borderou de evaluare (job #1593788)
Borderou de evaluare (job #1593788)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d\n", &a[i]);
^
user.cpp:89:19: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld",s);
^
user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("expresie.in","r",stdin);
^
user.cpp:8:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("expresie.out","w",stdout);
^
user.cpp:12:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:18:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &a[i]);
^
user.cpp:40:23: warning: ‘nr2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[nr2-1]>=a[nr2+1])
^
user.cpp:33:23: warning: ‘nr1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(a[nr1-1]>=a[nr1+1])
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 260kb | OK | 10 |
2 | 0ms | 264kb | Incorect | 0 |
3 | 0ms | 256kb | Incorect | 0 |
4 | 0ms | 256kb | Incorect | 0 |
5 | 0ms | 260kb | OK | 10 |
6 | 0ms | 256kb | Incorect | 0 |
7 | 0ms | 260kb | Incorect | 0 |
8 | 0ms | 264kb | Incorect | 0 |
9 | 0ms | 264kb | Incorect | 0 |
10 | 0ms | 260kb | OK | 10 |
Punctaj total | 30 |