Borderou de evaluare (job #2763095)

Utilizator NeacsuMihaiNeacsu Mihai NeacsuMihai Data 11 iulie 2021 16:08:35
Problema Pirati Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: 'include' does not name a type include <bits/stdc++.h> ^~~~~~~ main.cpp: In function 'int lca(int, int)': main.cpp:40:36: error: 'swap' was not declared in this scope if(depth[x] > depth[y])swap(x,y); ^ main.cpp:39:9: warning: unused variable 'ans' [-Wunused-variable] int ans = 0; ^~~ main.cpp: In function 'int main()': main.cpp:65:29: error: 'stdin' was not declared in this scope freopen("pirati.in","r",stdin); ^~~~~ main.cpp:65:34: error: 'freopen' was not declared in this scope freopen("pirati.in","r",stdin); ^ main.cpp:66:30: error: 'stdout' was not declared in this scope freopen("pirati.out","w",stdout); ^~~~~~ main.cpp:67:30: error: 'scanf' was not declared in this scope scanf("%d %d %d",&n,&m,&q); ^ main.cpp:71:13: error: 'cin' was not declared in this scope cin>>c; ^~~ main.cpp:116: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:116:94: error: 'printf' was not declared in this scope printf("%d\n",depth[v[a][b]] + depth[v[x][y]] - (depth[lca(v[a][b],v[x][y])]<<1 )>>1 ); ^ Non zero exit status: 1

Ceva nu functioneaza?