Borderou de evaluare (job #2718901)
Utilizator | Data | 9 martie 2021 12:41:21 | |
---|---|---|---|
Problema | Mesaje | 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:61:15: error: 'gets' was not declared in this scope
gets(s + 1);
^
main.cpp:97:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < strv.size(); i++)
~~^~~~~~~~~~~~~
main.cpp:116:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", wrds.size());
^
main.cpp:37:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("mesaje.in", "r", stdin);
^
main.cpp:38:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("mesaje.out", "w", stdout);
^
main.cpp:41:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(s + 1, 30005, stdin);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !