Borderou de evaluare (job #1608612)
Utilizator | Data | 22 februarie 2016 11:08:59 | |
---|---|---|---|
Problema | Densitate | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("densitate.in","r",stdin);
^
user.cpp:5:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("densitate.out","w",stdout);
^
user.cpp: In function ‘int main()’:
user.cpp:21:9: error: expected ‘;’ before ‘c1’
c1=cautbin(a-1)+1;
^
user.cpp: In function ‘unsigned int ciurb(unsigned int)’:
user.cpp:30:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=4;j<=m;j+=2) ciur[j]=1;
^
user.cpp:44:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:16:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&q);
^
user.cpp:21:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
c1=cautbin(a-1)+1;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !