Borderou de evaluare (job #1868085)
Utilizator | Constantin-Buliga Stefan fanache99 | Data | 4 februarie 2017 16:02:36 |
---|---|---|---|
Problema | Maraton | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(ci[i]==-1)
^
user.cpp: At global scope:
user.cpp:35:2: error: ‘ajutor’ does not name a type
ajutor
^
user.cpp: In function ‘int main()’:
user.cpp:6:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maraton.in","r",stdin);
^
user.cpp:7:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maraton.out","w",stdout);
^
user.cpp:9: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:11:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&ci[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !