Borderou de evaluare (job #1843181)
Utilizator | Data | 8 ianuarie 2017 13:11:47 | |
---|---|---|---|
Problema | Stiva | 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:31: error: ‘S’ was not declared in this scope
if(s[i]==s[k])S
^
user.cpp:22:21: error: expected ‘;’ before ‘dp’
dp[i][j]=min(dp[i][j],dp[i][k-1]+dp[k+1][j]);
^
user.cpp:9:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stiva.in","r",stdin);
^
user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stiva.out","w",stdout);
^
user.cpp:12:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !