Borderou de evaluare (job #1463960)
Utilizator | Data | 21 iulie 2015 22:05:33 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void readvector(int*, int)’:
user.cpp:8:1: error: expected ‘;’ before ‘}’ token
}
^
user.cpp: In function ‘int main()’:
user.cpp:25:5: error: ‘res’ was not declared in this scope
res[mx++]=v[i];
^
user.cpp:32:17: error: ‘res’ was not declared in this scope
printf("%d ",res[i]);
^
user.cpp:17:6: warning: unused variable ‘resp’ [-Wunused-variable]
int resp[1024];
^
user.cpp:21:7: warning: unused variable ‘ok’ [-Wunused-variable]
bool ok=true;
^
user.cpp: In function ‘void readvector(int*, int)’:
user.cpp:8:1: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
}
^
user.cpp: In function ‘int main()’:
user.cpp:10:31: 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);
^
user.cpp:11:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cmlsc.out","w",stdout);
^
user.cpp:13:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
user.cpp:14:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !