Borderou de evaluare (job #2288536)
| Utilizator | Data | 23 noiembrie 2018 16:43:49 | |
|---|---|---|---|
| Problema | Cel mai lung subsir comun | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:85: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
freopen("cmlsc.in","r",stdin),freopen("cmlsc.out","w",stdout),scanf("%d%d",&n,&m);
^
main.cpp:7:85: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=]
main.cpp:9:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'unsigned char*' [-Wformat=]
scanf("%d",x+i);
^
main.cpp:11:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'unsigned char*' [-Wformat=]
scanf("%d",y+i);
^
main.cpp:14:66: error: 'max' was not declared in this scope
s[i][j]=(x[i]==y[j]?1+s[i-1][j-1]:max(s[i][j-1],s[i-1][j]));
^
main.cpp:7:86: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cmlsc.in","r",stdin),freopen("cmlsc.out","w",stdout),scanf("%d%d",&n,&m);
^
main.cpp:7:86: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:7:86: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:9:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",x+i);
^
main.cpp:11:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",y+i);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
