Pagini recente » Borderou de evaluare (job #164855) | Borderou de evaluare (job #507931) | Borderou de evaluare (job #1283586) | Cod sursa (job #2873823) | Borderou de evaluare (job #2280263)
Borderou de evaluare (job #2280263)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:25:45: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
d[i][p]=min(d[i][p-1], d[i+(1<<p-1)][p-1]);
~^~
main.cpp:29:10: warning: statement has no effect [-Wunused-value]
for(m;m>0;m--)
^
main.cpp:14:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.in", "r", stdin);
^
main.cpp:15:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.out", "w", stdout);
^
main.cpp:18:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:20:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
main.cpp:32:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &i, &j);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 6ms | 524kb | OK | 10 | 10 |
4 | 133ms | 4849kb | OK | 10 | 10 |
5 | 155ms | 4849kb | OK | 10 | 20 |
6 | 699ms | 7733kb | OK | 10 |
7 | 707ms | 9306kb | OK | 10 | 10 |
8 | 820ms | 11403kb | OK | 10 | 10 |
9 | 935ms | 11665kb | OK | 10 | 10 |
10 | 1037ms | 12189kb | OK | 10 | 10 |
Punctaj total | 100 |