Pagini recente » Cod sursa (job #263192) | Borderou de evaluare (job #1421470) | Cod sursa (job #577684) | Borderou de evaluare (job #2768195) | Borderou de evaluare (job #2112543)
Borderou de evaluare (job #2112543)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:56:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘ll* {aka long long int*}’ [-Wformat=]
for(i = 0; i < n; ++i) scanf("%d", v + i);
^
user.cpp:49:8: warning: unused variable ‘j’ [-Wunused-variable]
ll i, j, type;
^
user.cpp:45:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dif2.in", "r", stdin);
^
user.cpp:46:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dif2.out", "w", stdout);
^
user.cpp:52:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &type, &n);
^
user.cpp:53:100: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if(type == 2) scanf("%lld %lld", &p1, &p2), p1 = n * n + 1 - p1, p2 = n * n + 1 - p2, swap(p1, p2);
^
user.cpp:56:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i = 0; i < n; ++i) scanf("%d", v + i);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 644ms | 2688kb | OK | 5 |
| 2 | 524ms | 2284kb | OK | 5 |
| 3 | 368ms | 1736kb | OK | 5 |
| 4 | 368ms | 1756kb | OK | 5 |
| 5 | 524ms | 2248kb | OK | 5 |
| 6 | 0ms | 460kb | OK | 5 |
| 7 | 0ms | 460kb | OK | 5 |
| 8 | 92ms | 744kb | OK | 5 |
| 9 | 116ms | 796kb | OK | 5 |
| 10 | 28ms | 548kb | OK | 5 |
| 11 | 128ms | 816kb | OK | 5 |
| 12 | 88ms | 736kb | OK | 5 |
| 13 | 108ms | 784kb | OK | 5 |
| 14 | 564ms | 2076kb | OK | 5 |
| 15 | Depăşit | 2664kb | Time limit exceeded. | 0 |
| 16 | 540ms | 1880kb | OK | 5 |
| 17 | Depăşit | 2608kb | Time limit exceeded. | 0 |
| 18 | Depăşit | 2364kb | Time limit exceeded. | 0 |
| 19 | 492ms | 1852kb | OK | 5 |
| 20 | 220ms | 1236kb | OK | 5 |
| Punctaj total | 85 |