Borderou de evaluare (job #1905996)
Utilizator | Data | 6 martie 2017 11:58:39 | |
---|---|---|---|
Problema | Blis | 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:20:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100001]’ [-Wformat=]
scanf("%s",&s);
^
user.cpp:34:5: error: ‘d’ was not declared in this scope
d[0]=-999999999;
^
user.cpp:36:23: error: expected ‘}’ at end of input
d[i]=999999999;
^
user.cpp:17:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("blis.in","r",stdin);
^
user.cpp:18:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("blis.out","w",stdout);
^
user.cpp:19:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%c",&k,&c);
^
user.cpp:20:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !