Pagini recente » Borderou de evaluare (job #2895321) | Borderou de evaluare (job #1398213) | Borderou de evaluare (job #1103221) | Borderou de evaluare (job #68534) | Borderou de evaluare (job #2305305)
Borderou de evaluare (job #2305305)
Raport evaluator
Compilare:
main.cpp: In function 'int* verifica_factori_in_n(int*, int, int*, int, int)':
main.cpp:38: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*, int)':
main.cpp:50:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (nr % p[i] == 0)
^
main.cpp: In function 'int main()':
main.cpp:63:7: warning: variable 'p' set but not used [-Wunused-but-set-variable]
int *p, nr_p;
^
main.cpp:64:7: warning: unused variable 'x' [-Wunused-variable]
int *x, nr_fact;
^
main.cpp:64:10: warning: unused variable 'nr_fact' [-Wunused-variable]
int *x, nr_fact;
^~~~~~~
main.cpp:60: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:61: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:66: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:70:27: 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 |
Punctaj/grupa |
1 | 5ms | 131kb | Incorect | 0 | 0 |
2 | 351ms | 1179kb | Time limit exceeded | 0 |
3 | 198ms | 262kb | Incorect | 0 | 0 |
4 | 352ms | 1441kb | Time limit exceeded | 0 |
5 | 2ms | 131kb | Incorect | 0 | 0 |
6 | 352ms | 1310kb | Time limit exceeded | 0 |
7 | 351ms | 786kb | Time limit exceeded | 0 | 0 |
8 | 352ms | 1572kb | Time limit exceeded | 0 | 0 |
9 | 350ms | 1572kb | Time limit exceeded | 0 | 0 |
10 | 353ms | 1048kb | Time limit exceeded | 0 | 0 |
Punctaj total | 0 |