Borderou de evaluare (job #1886558)
Utilizator | Data | 20 februarie 2017 22:53:24 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:25: error: ISO C++ forbids declaration of ‘tip0’ with no type [-fpermissive]
tip0(int st,int dr,int x){
^
user.cpp:20:25: error: ISO C++ forbids declaration of ‘tip1’ with no type [-fpermissive]
tip1(int st,int dr,int x){
^
user.cpp: In function ‘int tip1(int, int, int)’:
user.cpp:22:9: error: ‘m’ was not declared in this scope
m=(st+dr)/2;
^
user.cpp:28:5: error: ‘m’ was not declared in this scope
m=(st+dr)/2;
^
user.cpp: At global scope:
user.cpp:33:25: error: ISO C++ forbids declaration of ‘tip2’ with no type [-fpermissive]
tip2(int st,int dr,int x){
^
user.cpp: In function ‘int tip2(int, int, int)’:
user.cpp:35:9: error: ‘m’ was not declared in this scope
m=(st+dr)/2;
^
user.cpp:41:5: error: ‘m’ was not declared in this scope
m=(st+dr)/2;
^
user.cpp: In function ‘int main()’:
user.cpp:49:14: warning: unused variable ‘st’ [-Wunused-variable]
int n,m2,st=1,dr,t,x,m=0;
^
user.cpp:49:26: warning: unused variable ‘m’ [-Wunused-variable]
int n,m2,st=1,dr,t,x,m=0;
^
user.cpp: In function ‘int tip1(int, int, int)’:
user.cpp:32:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int tip2(int, int, int)’:
user.cpp:45:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:47:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.in", "r", stdin);
^
user.cpp:48:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !