Borderou de evaluare (job #1517918)
| Utilizator | Data | 4 noiembrie 2015 23:53:33 | |
|---|---|---|---|
| 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:15:28: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[2000000]’ [-Wformat=]
scanf("%s%s" , &s1, &s2);
^
user.cpp:15:28: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[2000000]’ [-Wformat=]
user.cpp:21:26: error: expected ‘;’ before ‘)’ token
x1=((x1*B)+s1[i]))%MOD1;
^
user.cpp:22:26: error: expected ‘;’ before ‘)’ token
x2=((x2*B)+s1[i]))%MOD2;
^
user.cpp:11:41: 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:12:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strmatch.out" , "w" , stdout);
^
user.cpp:15:29: 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 !
