Pagini recente » Borderou de evaluare (job #843372) | Borderou de evaluare (job #520850) | Borderou de evaluare (job #1312469) | Borderou de evaluare (job #2434325) | Borderou de evaluare (job #2305321)
Borderou de evaluare (job #2305321)
Raport evaluator
Compilare:
main.cpp: In function 'int* verifica_factori_in_n(int*, int, int*, int, int)':
main.cpp:31:18: warning: unused variable 'j' [-Wunused-variable]
for (int j = 1; nr <= MAX; nr += i) // cautam prin toti multiplii numarului prim
^
main.cpp: In function 'int descompune(int, int)':
main.cpp:41:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (nr % p[i] == 0)
^
main.cpp: In function 'int main()':
main.cpp:52:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pairs.in", "r", stdin);
^
main.cpp:53:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pairs.out", "w", stdout);
^
main.cpp:58:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &v[0]);
^
main.cpp:62:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
main.cpp:68:50: warning: 'p' is used uninitialized in this function [-Wuninitialized]
x = verifica_factori_in_n(p, nr_p, v, n, MAX);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 17ms | 131kb | OK | 10 | 0 |
2 | 351ms | 4325kb | Time limit exceeded | 0 |
3 | 249ms | 786kb | Incorect | 0 | 0 |
4 | 352ms | 5373kb | Time limit exceeded | 0 |
5 | 3ms | 131kb | OK | 10 | 0 |
6 | 351ms | 5242kb | Time limit exceeded | 0 |
7 | 353ms | 2752kb | Time limit exceeded | 0 | 0 |
8 | 350ms | 5505kb | Time limit exceeded | 0 | 0 |
9 | 351ms | 5505kb | Time limit exceeded | 0 | 0 |
10 | 352ms | 3014kb | Time limit exceeded | 0 | 0 |
Punctaj total | 0 |