Pagini recente » Borderou de evaluare (job #358017) | Borderou de evaluare (job #1362356) | Borderou de evaluare (job #2329291) | Borderou de evaluare (job #2144286) | Borderou de evaluare (job #2759879)
Borderou de evaluare (job #2759879)
Raport evaluator
Compilare:
main.cpp: In function 'int lca(int, int)':
main.cpp:36:9: warning: unused variable 'ans' [-Wunused-variable]
int ans = 0;
^~~
main.cpp: In function 'int main()':
main.cpp:89:55: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
printf("%d\n",depth[v[a][b]] + depth[v[x][y]] - (depth[lca(v[a][b],v[x][y])]<<1 )>>1 );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:50:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.in","r",stdin);
^
main.cpp:51:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.out","w",stdout);
^
main.cpp:52:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&n,&m,&q);
^
main.cpp:88:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d",&a,&b,&x,&y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 393kb | OK! | 8 |
2 | 7ms | 655kb | OK! | 10 |
3 | 32ms | 1835kb | OK! | 10 |
4 | 78ms | 3276kb | OK! | 10 |
5 | 226ms | 5767kb | OK! | 10 |
6 | 257ms | 7471kb | OK! | 10 |
7 | 250ms | 6553kb | OK! | 10 |
8 | 299ms | 7077kb | OK! | 10 |
9 | 290ms | 7733kb | OK! | 10 |
10 | 304ms | 6946kb | OK! | 10 |
11 | 2ms | 131kb | Raspuns gresit! | 0 |
12 | 2ms | 131kb | Raspuns gresit! | 0 |
Punctaj total | 98 |