Borderou de evaluare (job #1245224)
Utilizator | Data | 18 octombrie 2014 19:30:11 | |
---|---|---|---|
Problema | Alibaba | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("alibaba.in","r",stdin);
^
user.cpp:6:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("alibaba.out","w",stdout);
^
user.cpp: In function ‘int main()’:
user.cpp:23:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
user.cpp:25:42: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=-1;i<=n-1;i++) scanf("%c",&nr[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !