Borderou de evaluare (job #1545153)
Utilizator | Data | 6 decembrie 2015 15:22:22 | |
---|---|---|---|
Problema | Seriale | Status | done |
Runda | Algoritmiada 2016 - Runda 1, Seniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int check(int)’:
user.cpp:40:15: error: no pre-decrement operator for type
--max;
^
user.cpp:59:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<v.size();++i){
^
user.cpp:24:9: warning: unused variable ‘st’ [-Wunused-variable]
int st=0;
^
user.cpp:27:9: warning: unused variable ‘dr’ [-Wunused-variable]
int dr=l.size()-1;
^
user.cpp: In function ‘int main()’:
user.cpp:70:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("seriale.in","r",stdin);
^
user.cpp:71:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("seriale.out","w",stdout);
^
user.cpp:72:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&N,&K);
^
user.cpp:76:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp:101:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !