Borderou de evaluare (job #2592443)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:9:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sum.in", "rt", stdin);
^
main.cpp:11:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sum.out", "wt", stdout);
^
main.cpp:21:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:23:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
main.cpp:18:13: warning: iteration 100003 invokes undefined behavior [-Waggressive-loop-optimizations]
if (phi[i]==i)
~~~~~^
main.cpp:17:12: note: within this loop
for ( i=2;i<=nmax;i++)
^
main.cpp:15:35: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations]
for ( i=1;i<=nmax;i++) phi[i]=i;
~~~~~~^~
main.cpp:15:17: note: within this loop
for ( i=1;i<=nmax;i++) phi[i]=i;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 10ms | 581kb | OK | 5 |
2 | 13ms | 581kb | OK | 5 |
3 | 10ms | 585kb | OK | 5 |
4 | 13ms | 585kb | OK | 5 |
5 | 13ms | 581kb | OK | 5 |
6 | 13ms | 581kb | OK | 5 |
7 | 13ms | 585kb | OK | 5 |
8 | 11ms | 585kb | OK | 5 |
9 | 13ms | 589kb | OK | 5 |
10 | 46ms | 712kb | OK | 5 |
11 | 15ms | 581kb | OK | 5 |
12 | 20ms | 585kb | OK | 5 |
13 | 19ms | 585kb | OK | 5 |
14 | 21ms | 589kb | OK | 5 |
15 | 59ms | 974kb | OK | 5 |
16 | 66ms | 978kb | OK | 5 |
17 | 13ms | 585kb | OK | 5 |
18 | 99ms | 1499kb | OK | 5 |
19 | 102ms | 1507kb | Time limit exceeded | 0 |
20 | 101ms | 1630kb | Time limit exceeded | 0 |
Punctaj total | 90 |