Pagini recente » Borderou de evaluare (job #1352759) | Borderou de evaluare (job #3197524) | Cod sursa (job #47876) | Borderou de evaluare (job #2081757) | Borderou de evaluare (job #2266559)
Borderou de evaluare (job #2266559)
Raport evaluator
Compilare:
main.cpp: In function 'void ciur()':
main.cpp:62:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=2;i<=1000005;i++)
^~~
main.cpp:69:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(i=1;i<=1000005;++i)
^~~
main.cpp: In function 'int main()':
main.cpp:76:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cntgcd.in","r",stdin);
^
main.cpp:77:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cntgcd.out","w",stdout);
^
main.cpp:79:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&d);
^
main.cpp: In function 'void ciur()':
main.cpp:71:18: warning: iteration 1000004 invokes undefined behavior [-Waggressive-loop-optimizations]
sp[i]=p[i]+sp[i-1];
~~~^
main.cpp:69:18: note: within this loop
for(i=1;i<=1000005;++i)
~^~~~~~~~~
main.cpp:63:15: warning: iteration 1000003 invokes undefined behavior [-Waggressive-loop-optimizations]
if(p[i]==i)
~~~^
main.cpp:62:14: note: within this loop
for(i=2;i<=1000005;i++)
~^~~~~~~~~
main.cpp:61:13: warning: iteration 1000004 invokes undefined behavior [-Waggressive-loop-optimizations]
p[i]=i;
~~~~^~
main.cpp:60:14: note: within this loop
for(i=1;i<=1000005;i++)
~^~~~~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 303ms | 15183kb | OK | 5 |
| 2 | 306ms | 16179kb | OK | 5 |
| 3 | 304ms | 15302kb | OK | 5 |
| 4 | 304ms | 15278kb | OK | 5 |
| 5 | 307ms | 16166kb | OK | 5 |
| 6 | 307ms | 16064kb | OK | 5 |
| 7 | 308ms | 16060kb | OK | 5 |
| 8 | 307ms | 16117kb | OK | 5 |
| 9 | 308ms | 16134kb | Incorect | 0 |
| 10 | 303ms | 15474kb | Incorect | 0 |
| 11 | 308ms | 16080kb | Incorect | 0 |
| 12 | 305ms | 16039kb | Incorect | 0 |
| 13 | 307ms | 16101kb | Incorect | 0 |
| 14 | 307ms | 16175kb | Incorect | 0 |
| 15 | 306ms | 16068kb | Incorect | 0 |
| 16 | 304ms | 15351kb | Incorect | 0 |
| 17 | 304ms | 15089kb | Incorect | 0 |
| 18 | 307ms | 16146kb | Incorect | 0 |
| 19 | 307ms | 16056kb | Incorect | 0 |
| 20 | 304ms | 15077kb | Incorect | 0 |
| Punctaj total | 40 |