Borderou de evaluare (job #2228400)
Utilizator | Data | 3 august 2018 16:04:17 | |
---|---|---|---|
Problema | Sirag 2 | 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:13:15: error: ‘gets’ was not declared in this scope
gets(s);
^
user.cpp:9:19: warning: unused variable ‘l’ [-Wunused-variable]
int t,k,n,L,i,l,lmax;
^
user.cpp:9:21: warning: unused variable ‘lmax’ [-Wunused-variable]
int t,k,n,L,i,l,lmax;
^~~~
user.cpp:7:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
{ freopen("sirag2.in", "r",stdin);
^
user.cpp:8:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sirag2.out", "w",stdout);
^
user.cpp:10:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:12:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n", &n, &L);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !