Borderou de evaluare (job #1116808)
Utilizator | Data | 22 februarie 2014 20:30:59 | |
---|---|---|---|
Problema | Functii | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:35:6: error: conflicting types for ‘Mult’
void Mult(Big A, Big B)
^
user.c:19:6: note: previous definition of ‘Mult’ was here
void Mult(Big B, int nr)
^
user.c: In function ‘Mult’:
user.c:41:7: error: ‘i’ undeclared (first use in this function)
for (i = 1; i <= A[0]; i++)
^
user.c:41:7: note: each undeclared identifier is reported only once for each function it appears in
user.c: In function ‘Comb’:
user.c:66:7: error: ‘i’ undeclared (first use in this function)
for (i = 2; i <= m; i++)
^
user.c: In function ‘Solve’:
user.c:100:3: warning: passing argument 2 of ‘Mult’ makes pointer from integer without a cast [enabled by default]
for (int j = 1; j <= S; j++) Mult(B, 2);
^
user.c:35:6: note: expected ‘int *’ but argument is of type ‘int’
void Mult(Big A, Big B)
^
user.c: At top level:
user.c:110:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main()
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !