Borderou de evaluare (job #2464203)
Utilizator | Data | 28 septembrie 2019 14:09:01 | |
---|---|---|---|
Problema | Siruri duplicat | Status | done |
Runda | Romanian Collegiate Programming Contest 2019 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:53:41: error: 'memset' was not declared in this scope
memset(prev_hash, 0, sizeof(prev_hash));
^
main.cpp:60:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int len = 1; len <= input.size(); len++)
~~~~^~~~~~~~~~~~~~~
main.cpp:68:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = len; i < input.size(); i++)
~~^~~~~~~~~~~~~~
main.cpp: In function 'int toNumber(char)':
main.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:46:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("strdup.in", "r", stdin);
^
main.cpp:47:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("strdup.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 !