Borderou de evaluare (job #1337529)
Utilizator | Data | 9 februarie 2015 10:17:33 | |
---|---|---|---|
Problema | Multiplu2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:26: error: conflicting declaration ‘int k [50010]’
int v[DIM], w[DIM], k[DIM];
^
user.cpp:8:17: error: ‘k’ has a previous declaration as ‘int k’
int n, m, i, j, k, ok, minim;
^
user.cpp: In function ‘void Descompose()’:
user.cpp:13:6: error: ‘nr’ was not declared in this scope
nr = 0;
^
user.cpp:15:11: error: ‘val’ was not declared in this scope
val = 0;
^
user.cpp:18:16: error: expected ‘;’ before ‘n’
n /= i;
^
user.cpp:21:26: error: ‘e’ was not declared in this scope
k[++nr] = e;
^
user.cpp: In function ‘void Product_a(int)’:
user.cpp:28:22: error: ‘nr’ was not declared in this scope
for(i = 1; i <= nr; i ++)
^
user.cpp:29:20: error: invalid types ‘int[int]’ for array subscript
a *= (k[i] + 1);
^
user.cpp:31:15: error: ‘k1’ was not declared in this scope
v[++k1] = a % 10;
^
user.cpp: In function ‘void Product_b(int)’:
user.cpp:38:22: error: ‘nr’ was not declared in this scope
for(i = 1; i <= nr; i ++)
^
user.cpp:39:20: error: invalid types ‘int[int]’ for array subscript
b *= (k[i] + 0);
^
user.cpp:41:15: error: ‘k2’ was not declared in this scope
w[++k2] = b % 10;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !