Pagini recente » Borderou de evaluare (job #1449251) | Cod sursa (job #2002140) | Borderou de evaluare (job #1922234) | Borderou de evaluare (job #1967021) | Borderou de evaluare (job #1688691)
Borderou de evaluare (job #1688691)
Raport evaluator
Compilare:
user.cpp: In function ‘void initialize()’:
user.cpp:31:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Heap.size()<k)
^
user.cpp:37:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(Heap.size()==k && Heap.top()<=a[ind].p)
^
user.cpp: In function ‘int main()’:
user.cpp:51:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("peste.in", "r", stdin);
^
user.cpp:52:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("peste.out", "w", stdout);
^
user.cpp:54:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &k, &Tmax);
^
user.cpp:56:57: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=n; ++i) scanf("%d%d", &a[i].p, &a[i].t);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | Depăşit | 1348kb | Time limit exceeded. | 0 |
| 2 | Depăşit | 1284kb | Time limit exceeded. | 0 |
| 3 | Depăşit | 1164kb | Time limit exceeded. | 0 |
| 4 | Depăşit | 1060kb | Time limit exceeded. | 0 |
| 5 | Depăşit | 1008kb | Time limit exceeded. | 0 |
| 6 | 276ms | 976kb | OK | 10 |
| 7 | 8ms | 356kb | OK | 10 |
| 8 | 4ms | 332kb | OK | 10 |
| 9 | 0ms | 296kb | OK | 10 |
| 10 | 0ms | 280kb | OK | 10 |
| Punctaj total | 50 |