Borderou de evaluare (job #1520779)
Utilizator | Data | 9 noiembrie 2015 14:34:31 | |
---|---|---|---|
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 ‘int main()’:
user.cpp:45:17: error: expected unqualified-id before ‘;’ token
for(int i=m,;j=n;i){
^
user.cpp:45:18: error: ‘j’ was not declared in this scope
for(int i=m,;j=n;i){
^
user.cpp:45:22: warning: for increment expression has no effect [-Wunused-value]
for(int i=m,;j=n;i){
^
user.cpp:63:15: error: ‘k’ was not declared in this scope
for(int i=k;i>0;--i){
^
user.cpp:43:9: warning: unused variable ‘v’ [-Wunused-variable]
int v[d[m][n]],mx=d[m][n];
^
user.cpp:43:20: warning: unused variable ‘mx’ [-Wunused-variable]
int v[d[m][n]],mx=d[m][n];
^
user.cpp:11:36: 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:12:38: 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:14:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &m, &n);
^
user.cpp:18:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
user.cpp:23:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !