Borderou de evaluare (job #2112912)
Utilizator | Data | 23 ianuarie 2018 22:46:47 | |
---|---|---|---|
Problema | Lacusta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:9: warning: variable ‘m1’ set but not used [-Wunused-but-set-variable]
int m1=0;
^
user.cpp:22:9: warning: variable ‘m2’ set but not used [-Wunused-but-set-variable]
int m2=0;
^
user.cpp: At global scope:
user.cpp:67:5: error: expected unqualified-id before ‘if’
if(m1!=M)
^
user.cpp:69:5: error: expected unqualified-id before ‘else’
else ans=dp[N][m2]+v[N][M];
^
user.cpp:71:11: error: expected constructor, destructor, or type conversion before ‘(’ token
printf("%d",ans);
^
user.cpp:73:5: error: expected unqualified-id before ‘return’
return 0;
^
user.cpp:74:1: error: expected declaration before ‘}’ token
}
^
user.cpp: In function ‘int main()’:
user.cpp:12:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lacusta.in","r",stdin);
^
user.cpp:13:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lacusta.out","w",stdout);
^
user.cpp:15:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&N,&M);
^
user.cpp:19:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&v[i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !