Pagini recente » Borderou de evaluare (job #2324897) | Borderou de evaluare (job #1508031) | Borderou de evaluare (job #1819975) | Borderou de evaluare (job #2096749) | Borderou de evaluare (job #2733283)
Borderou de evaluare (job #2733283)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:7:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("fsb.in","r",stdin);
^
main.cpp:8:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("fsb.out","w",stdout);
^
main.cpp:10:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:13:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%1d",&x);
^
main.cpp:21:21: warning: iteration 400005 invokes undefined behavior [-Waggressive-loop-optimizations]
cnt=cnt+(f[i]*(f[i]-1))/2; //combinari de f[i] luate cate 2
~~~^
main.cpp:20:14: note: within this loop
for(i=0;i<=LIM;i++)
~^~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 4ms | 131kb | OK | 10 |
| 2 | 4ms | 131kb | OK | 10 |
| 3 | 7ms | 131kb | OK | 10 |
| 4 | 8ms | 229kb | OK | 10 |
| 5 | 25ms | 331kb | OK | 10 |
| 6 | 24ms | 524kb | OK | 10 |
| 7 | 45ms | 688kb | OK | 10 |
| 8 | 50ms | 786kb | OK | 10 |
| 9 | 60ms | 876kb | OK | 10 |
| 10 | 66ms | 974kb | OK | 10 |
| Punctaj total | 100 |