Pagini recente » Borderou de evaluare (job #2714443) | Borderou de evaluare (job #1196169) | Monitorul de evaluare | Borderou de evaluare (job #888827) | Borderou de evaluare (job #2240537)
Borderou de evaluare (job #2240537)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:22:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&x);
^
user.cpp:13:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sum.in","r",stdin);
^
user.cpp:14:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sum.out","w",stdout);
^
user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
user.cpp:22:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&x);
^
user.cpp:17:16: warning: iteration 100008 invokes undefined behavior [-Waggressive-loop-optimizations]
if (v[i]==i)
~~~^
user.cpp:16:19: note: within this loop
for (int i=2;i<=t;i++)
^
user.cpp:15:32: warning: iteration 100009 invokes undefined behavior [-Waggressive-loop-optimizations]
for (int i=1;i<=t;i++) v[i]=i;
~~~~^~
user.cpp:15:19: note: within this loop
for (int i=1;i<=t;i++) v[i]=i;
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 4ms | 1708kb | OK | 5 |
| 2 | 4ms | 1712kb | OK | 5 |
| 3 | 4ms | 1704kb | OK | 5 |
| 4 | 4ms | 1708kb | OK | 5 |
| 5 | 4ms | 1708kb | OK | 5 |
| 6 | 4ms | 1708kb | OK | 5 |
| 7 | 4ms | 1708kb | OK | 5 |
| 8 | 4ms | 1708kb | OK | 5 |
| 9 | 4ms | 1708kb | OK | 5 |
| 10 | 32ms | 1704kb | OK | 5 |
| 11 | 8ms | 1708kb | OK | 5 |
| 12 | 8ms | 1712kb | OK | 5 |
| 13 | 12ms | 1704kb | OK | 5 |
| 14 | 12ms | 1708kb | OK | 5 |
| 15 | 44ms | 1708kb | Incorect | 0 |
| 16 | 48ms | 1704kb | OK | 5 |
| 17 | 4ms | 1708kb | OK | 5 |
| 18 | 84ms | 1708kb | Incorect | 0 |
| 19 | 84ms | 1708kb | Incorect | 0 |
| 20 | 92ms | 1704kb | Incorect | 0 |
| Punctaj total | 80 |