Borderou de evaluare (job #1158001)
Utilizator | Data | 28 martie 2014 19:43:35 | |
---|---|---|---|
Problema | Beep | Status | done |
Runda | Infoarena Monthly 2014 - Runda 3 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%s\n", k);
^
user.cpp:18:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%s\n", s);
^
user.cpp:19:23: error: cannot convert ‘int*’ to ‘const char*’ for argument ‘1’ to ‘int strcmp(const char*, const char*)’
if(strcmp(s, k))
^
user.cpp:22:28: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘int*’ [-Wformat=]
printf("%s ", s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !