Pagini recente » Borderou de evaluare (job #2965937) | Borderou de evaluare (job #950294) | Borderou de evaluare (job #949620) | Borderou de evaluare (job #2560967) | Borderou de evaluare (job #2399414)
Borderou de evaluare (job #2399414)
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:39:45:
if(List[x].L>=List[x].S) Sol[i]=max(Sol[i], List[x].S*List[x].P);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:39: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:21: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:22: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:23: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:24: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 | 2ms | 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 | 655kb | 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 | 24ms | 6946kb | Incorect | 0 |
15 | 41ms | 8650kb | Incorect | 0 |
16 | 36ms | 8257kb | Incorect | 0 |
17 | 21ms | 6029kb | Incorect | 0 |
18 | 41ms | 11796kb | Incorect | 0 |
19 | 50ms | 13107kb | Time limit exceeded | 0 |
20 | 49ms | 13107kb | Incorect | 0 |
Punctaj total | 0 |