Borderou de evaluare (job #1174935)
Utilizator | Data | 24 aprilie 2014 11:09:49 | |
---|---|---|---|
Problema | Reteta2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:19: error: conflicting declaration ‘int x’
int l,i,j,t,ok,nr,x;
^
user.cpp:6:2: error: ‘x’ has a previous declaration as ‘ingr x [1000]’
}x[1000];
^
user.cpp: In function ‘int main()’:
user.cpp:23:17: error: invalid operands of types ‘ingr [1000]’ and ‘int’ to binary ‘operator*’
x=x*10+s[i]-'0';
^
user.cpp:26:29: error: too few arguments to function ‘char* strncat(char*, const char*, size_t)’
strncat(cuv,s+nr);
^
In file included from /usr/local/include/c++/4.8.0/cstring:42:0,
from user.cpp:2:
/usr/include/string.h:138:14: note: declared here
extern char *strncat (char *__restrict __dest, __const char *__restrict __src,
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !