Borderou de evaluare (job #1772773)
Utilizator | Data | 6 octombrie 2016 23:52:43 | |
---|---|---|---|
Problema | Biti | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void afisare(int)’:
user.cpp:61:30: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
for(int a=1;a<=5-strlen(s);a++) cout<<'0';
^
In file included from user.cpp:3:0:
/usr/include/string.h:399:15: error: initializing argument 1 of ‘size_t strlen(const char*)’ [-fpermissive]
extern size_t strlen (__const char *__s)
^
user.cpp:61:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int a=1;a<=5-strlen(s);a++) cout<<'0';
^
user.cpp: In function ‘int main()’:
user.cpp:69:15: warning: unused variable ‘m’ [-Wunused-variable]
int n=20, m, i, x, y,j,k=0;
^
user.cpp:69:21: warning: unused variable ‘x’ [-Wunused-variable]
int n=20, m, i, x, y,j,k=0;
^
user.cpp:69:24: warning: unused variable ‘y’ [-Wunused-variable]
int n=20, m, i, x, y,j,k=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !