Borderou de evaluare (job #2759878)

Utilizator tryharderulbrebenel mihnea stefan tryharderul Data 21 iunie 2021 11:13:07
Problema Pirati Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

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
13ms393kbRaspuns gresit!0
26ms655kbRaspuns gresit!0
324ms1835kbRaspuns gresit!0
457ms3145kbRaspuns gresit!0
5169ms5767kbRaspuns gresit!0
6189ms6160kbRaspuns gresit!0
7180ms6422kbRaspuns gresit!0
8213ms7077kbRaspuns gresit!0
9216ms6815kbRaspuns gresit!0
10218ms7077kbRaspuns gresit!0
112ms131kbRaspuns gresit!0
122ms131kbRaspuns gresit!0
Punctaj total0

Ceva nu functioneaza?