Borderou de evaluare (job #2260459)
Utilizator | Data | 14 octombrie 2018 23:47:29 | |
---|---|---|---|
Problema | Castori | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:50: error: ISO C++ forbids declaration of 'init' with no type [-fpermissive]
init(double poz1,double st1,double dr1,int s1) {poz=poz1;st=st1;dr=dr1;s=s1;}
^
main.cpp: In member function 'int punct::init(double, double, double, int)':
main.cpp:9:81: warning: no return statement in function returning non-void [-Wreturn-type]
init(double poz1,double st1,double dr1,int s1) {poz=poz1;st=st1;dr=dr1;s=s1;}
^
main.cpp: In function 'int main()':
main.cpp:82:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("castori.in","r",stdin);
^
main.cpp:83:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("castori.out","w",stdout);
^
main.cpp:85:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&c);
^
main.cpp:88:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !