Borderou de evaluare (job #1896468)
Utilizator | Data | 28 februarie 2017 18:29:36 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[2000002]’ [-Wformat=]
scanf("%s %s", &s1, &s2);
^
user.cpp:18:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[2000002]’ [-Wformat=]
user.cpp:20:20: error: ‘strlen’ was not declared in this scope
int l1 = strlen(s1), l2 = strlen(s2);
^
user.cpp:22:11: error: ‘l2’ was not declared in this scope
if (l1 > l2)
^
user.cpp:52:23: error: ‘l2’ was not declared in this scope
for (int i = l1; i < l2; i++)
^
user.cpp:61:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < v.size(); i++)
^
user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.in", "r", stdin);
^
user.cpp:18:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %s", &s1, &s2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !