Borderou de evaluare (job #2655013)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:42:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &p, &n);
^
main.cpp:45:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &numar, &k);
^
main.cpp:49:38: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d", &numar, &k);
^
main.cpp:55:17: warning: iteration 999999 invokes undefined behavior [-Waggressive-loop-optimizations]
if (nDiv[i] == 0)
~~~~~~^
main.cpp:54:23: note: within this loop
for (int i = 2; i <= MAX_N; ++i)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Corect | 2 |
2 | 50ms | 1179kb | Corect | 8 |
3 | 2ms | 131kb | Corect | 4 |
4 | 2ms | 131kb | Corect | 4 |
5 | 49ms | 1179kb | Corect | 5 |
6 | 51ms | 1179kb | Corect | 5 |
7 | 49ms | 1179kb | Corect | 3 |
8 | 49ms | 1179kb | Corect | 3 |
9 | 51ms | 1179kb | Corect | 3 |
10 | 50ms | 1179kb | Corect | 3 |
11 | 52ms | 1179kb | Corect | 3 |
12 | 61ms | 1310kb | Corect | 3 |
13 | 76ms | 1572kb | Corect | 4 |
14 | 107ms | 1966kb | Corect | 4 |
15 | 194ms | 3014kb | Corect | 4 |
16 | 316ms | 4063kb | Corect | 4 |
17 | 514ms | 5111kb | Corect | 9 |
18 | 526ms | 5111kb | Corect | 9 |
19 | 568ms | 5079kb | Corect | 10 |
20 | 600ms | 5160kb | Corect | 10 |
Punctaj total | 100 |