Pagini recente » Cod sursa (job #2218685) | Borderou de evaluare (job #1833494)
Borderou de evaluare (job #1833494)
Raport evaluator
Compilare:
user.cpp: In function ‘void aib_update(std::vector<int>&, int, int)’:
user.cpp:23:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (; pos < aib.size(); pos+= lsb(pos))
^
user.cpp: In function ‘void make_barn(int)’:
user.cpp:34:39: warning: capture of variable ‘siz’ with non-automatic storage duration [enabled by default]
sort(b[u].rbegin(), b[u].rend(), [siz](int a, int b) { return siz[a] < siz[b]; } ); }
^
user.cpp:10:38: note: ‘int siz [200005]’ declared here
int lnk[SPQR], far[SPQR], pos[SPQR], siz[SPQR], pop[SPQR], lvl[SPQR];
^
user.cpp: In function ‘void make_chns(int)’:
user.cpp:45:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < b[u].size(); ++i) {
^
user.cpp: In function ‘int main()’:
user.cpp:68:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rafaela.in", "r", stdin);
^
user.cpp:69:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rafaela.out", "w", stdout);
^
user.cpp:73:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &q);
^
user.cpp:75:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^
user.cpp:85:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &val);
^
user.cpp:89:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %c", &op);
^
user.cpp:92:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nod);
^
user.cpp:96:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &val, &nod);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 8ms | 5168kb | OK | 10 |
2 | 8ms | 5176kb | OK | 10 |
3 | 8ms | 5232kb | OK | 10 |
4 | 328ms | 10068kb | OK | 10 |
5 | 432ms | 11920kb | OK | 10 |
6 | 580ms | 14364kb | OK | 10 |
7 | 632ms | 15092kb | OK | 10 |
8 | 796ms | 17564kb | OK | 10 |
9 | 836ms | 18072kb | OK | 10 |
10 | 852ms | 18624kb | OK | 10 |
Punctaj total | 100 |