Borderou de evaluare (job #2318000)
Utilizator | Data | 13 ianuarie 2019 12:38:34 | |
---|---|---|---|
Problema | Interact | Status | done |
Runda | Fmi No Stress 8 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int getCount(char)':
main.cpp:27:14: error: invalid initialization of reference of type 'std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}' from expression of type 'char'
if(!ask(c)) break;
^
main.cpp:8:5: note: in passing argument 1 of 'int ask(std::__cxx11::string&)'
int ask(string &s) {
^~~
main.cpp: In function 'int main()':
main.cpp:33:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("interact.in", "r", stdin);
^
main.cpp:34:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("interact.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !