Pagini recente » Borderou de evaluare (job #2131241) | Borderou de evaluare (job #2275612) | Borderou de evaluare (job #2604428) | Borderou de evaluare (job #603445) | Borderou de evaluare (job #1252601)
Borderou de evaluare (job #1252601)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:36:18: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%lld", p);
^
user.cpp:9:9: warning: unused variable ‘x’ [-Wunused-variable]
int n, x, i, p, poz2, poz3;
^
user.cpp:6:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pba.in", "r", stdin);
^
user.cpp:7:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pba.out", "w", stdout);
^
user.cpp:12:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:15:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &v[i]);
^
user.cpp:30:36: warning: ‘poz2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(v[i] > max1 && i != poz3 && i != poz2)
^
user.cpp:24:18: warning: ‘poz3’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(v[i] > max2 && i != poz3)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 272kb | OK | 10 | 0 |
2 | 0ms | 276kb | OK | 10 |
3 | 0ms | 276kb | OK | 10 |
4 | 0ms | 272kb | OK | 10 |
5 | 0ms | 284kb | Incorect | 0 |
6 | 0ms | 352kb | Incorect | 0 |
7 | 8ms | 476kb | Incorect | 0 |
8 | 8ms | 564kb | Incorect | 0 |
9 | 12ms | 664kb | Incorect | 0 |
10 | 16ms | 672kb | Incorect | 0 |
Punctaj total | 0 |