Borderou de evaluare (job #2010736)
Utilizator | Data | 14 august 2017 11:07:47 | |
---|---|---|---|
Problema | Text3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:24: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
p=strtok(s, ' ');
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:3:
/usr/include/string.h:348:14: error: initializing argument 2 of ‘char* strtok(char*, const char*)’ [-fpermissive]
extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
^
user.cpp:20:31: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
p=strtok(NULL, ' ');
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:3:
/usr/include/string.h:348:14: error: initializing argument 2 of ‘char* strtok(char*, const char*)’ [-fpermissive]
extern char *strtok (char *__restrict __s, __const char *__restrict __delim)
^
user.cpp:11:9: warning: unused variable ‘nr’ [-Wunused-variable]
int nr, i, nr2, j, aux;
^
user.cpp:11:13: warning: unused variable ‘i’ [-Wunused-variable]
int nr, i, nr2, j, aux;
^
user.cpp:11:21: warning: unused variable ‘j’ [-Wunused-variable]
int nr, i, nr2, j, aux;
^
user.cpp:11:24: warning: unused variable ‘aux’ [-Wunused-variable]
int nr, i, nr2, j, aux;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !