Pagini recente » Borderou de evaluare (job #440825) | Borderou de evaluare (job #2665568) | Borderou de evaluare (job #2483440) | Borderou de evaluare (job #3249594) | Borderou de evaluare (job #2399369)
Borderou de evaluare (job #2399369)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:5:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define max(a, b) (a>b?a:b)
main.cpp:35:45:
if(List[x].L>=List[x].S) Sol[i]=max(Sol[i], List[x].S*List[x].P);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:35:41: note: in expansion of macro 'max'
if(List[x].L>=List[x].S) Sol[i]=max(Sol[i], List[x].S*List[x].P);
^~~
main.cpp:18:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("gard.in", "r", stdin);
^
main.cpp:19:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("gard.out", "w", stdout);
^
main.cpp:20:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &K);
^
main.cpp:21:77: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=K; ++i) {scanf("%d%d%d", &List[i].L, &List[i].P, &List[i].S); Sol[List[i].S]=1;}
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 3ms | 655kb | Incorect | 0 |
| 2 | 3ms | 655kb | Incorect | 0 |
| 3 | 3ms | 786kb | Incorect | 0 |
| 4 | 3ms | 524kb | Incorect | 0 |
| 5 | 4ms | 917kb | Incorect | 0 |
| 6 | 3ms | 524kb | Incorect | 0 |
| 7 | 4ms | 786kb | Incorect | 0 |
| 8 | 3ms | 393kb | Incorect | 0 |
| 9 | 3ms | 524kb | Incorect | 0 |
| 10 | 5ms | 1310kb | Incorect | 0 |
| 11 | 17ms | 4587kb | Incorect | 0 |
| 12 | 9ms | 2752kb | Incorect | 0 |
| 13 | 4ms | 1048kb | Incorect | 0 |
| 14 | 25ms | 6946kb | Incorect | 0 |
| 15 | 41ms | 8650kb | Incorect | 0 |
| 16 | 36ms | 8257kb | Incorect | 0 |
| 17 | 22ms | 6029kb | Incorect | 0 |
| 18 | 43ms | 11796kb | Incorect | 0 |
| 19 | 52ms | 13107kb | Time limit exceeded | 0 |
| 20 | 49ms | 13107kb | Incorect | 0 |
| Punctaj total | 0 |