Borderou de evaluare (job #1669022)

Utilizator robx12lnLinca Robert robx12ln Data 30 martie 2016 11:50:39
Problema Collar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:7: error: ‘DIM’ was not declared in this scope int x[DIM], v[DIM], d[DIM]; ^ user.cpp:6:15: error: ‘DIM’ was not declared in this scope int x[DIM], v[DIM], d[DIM]; ^ user.cpp:6:23: error: ‘DIM’ was not declared in this scope int x[DIM], v[DIM], d[DIM]; ^ user.cpp: In function ‘void solve(int)’: user.cpp:10:5: error: ‘d’ was not declared in this scope d[1] = 1; ^ user.cpp:14:30: error: ‘n’ was not declared in this scope for( int i = 2; i <= 2 * n; i++ ){ ^ user.cpp:15:26: error: ‘v’ was not declared in this scope while( p <= u && v[i] > v[ d[u] ] ){ ^ user.cpp:23:13: error: ‘x’ was not declared in this scope x[++poz] += v[ d[p] ]; ^ user.cpp:23:25: error: ‘v’ was not declared in this scope x[++poz] += v[ d[p] ]; ^ user.cpp:31:30: error: ‘n’ was not declared in this scope for( int i = 2; i <= 2 * n; i++ ){ ^ user.cpp:32:26: error: ‘v’ was not declared in this scope while( p <= u && v[i] < v[ d[u] ] ){ ^ user.cpp:40:13: error: ‘x’ was not declared in this scope x[++poz] -= v[ d[p] ]; ^ user.cpp:40:25: error: ‘v’ was not declared in this scope x[++poz] -= v[ d[p] ]; ^ user.cpp: In function ‘int main()’: user.cpp:47:12: error: ‘n’ was not declared in this scope fin >> n; ^ user.cpp:49:16: error: ‘v’ was not declared in this scope fin >> v[i]; ^ user.cpp:53:17: error: ‘i’ was not declared in this scope if( n % i == 0 ){ ^

Ceva nu functioneaza?