Borderou de evaluare (job #2468564)
Utilizator | Data | 5 octombrie 2019 17:32:59 | |
---|---|---|---|
Problema | Frequent | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:126:18: error: invalid type argument of unary '*' (have 'int')
scanf("%i",&k);
^
main.cpp:129:20: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[400042]' [-Wformat=]
scanf("%s",&str);
^
main.cpp:123:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("frequent.in","r",stdin);
^
main.cpp:124:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("frequent.out","w",stdout);
^
main.cpp:129:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&str);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !