Pagini recente » Borderou de evaluare (job #2125288) | Borderou de evaluare (job #1708509) | Borderou de evaluare (job #2535183) | Borderou de evaluare (job #2742038) | Borderou de evaluare (job #2461440)
Borderou de evaluare (job #2461440)
Raport evaluator
Compilare:
main.cpp: In function 'void solve()':
main.cpp:30:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=2; i<=n; ++i) bins(0, list[0][i]); pos=mx[v]; sol+=v;
^~~
main.cpp:30:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(i=2; i<=n; ++i) bins(0, list[0][i]); pos=mx[v]; sol+=v;
^~~
main.cpp: In function 'int main()':
main.cpp:12:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("interclasare.in", "r", stdin);
^
main.cpp:13:45: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("interclasare.out", "w", stdout);
^
main.cpp: In function 'void read()':
main.cpp:22:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
main.cpp:23:51: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=n; ++i) scanf("%lld", &list[0][i]);
^
main.cpp:24:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &m);
^
main.cpp:25:51: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1; i<=m; ++i) scanf("%lld", &list[1][i]);
^
main.cpp: In function 'void bins(ll, ll)':
main.cpp:85:18: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
ll l=1, r=v, m;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 262kb | OK! | 10 |
2 | 6ms | 262kb | OK! | 10 |
3 | 7ms | 262kb | OK! | 10 |
4 | 9ms | 393kb | OK! | 10 |
5 | 11ms | 393kb | OK! | 10 |
6 | 13ms | 524kb | OK! | 10 |
7 | 14ms | 524kb | OK! | 10 |
8 | 16ms | 524kb | OK! | 10 |
9 | 14ms | 655kb | OK! | 10 |
10 | 15ms | 655kb | OK! | 10 |
Punctaj total | 100 |