Borderou de evaluare (job #1192219)
Utilizator | Data | 28 mai 2014 20:55:18 | |
---|---|---|---|
Problema | Litere2 | Status | done |
Runda | Infoarena Monthly 2014 - Runda 5 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:20: error: ‘strlen’ was not declared in this scope
int N = strlen(buf);
^
user.cpp:50:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<words.size(); ++i)
^
user.cpp:52:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
printf("%s%s", words[i].c_str(), i+1 == words.size() ? "":" ");
^
user.cpp:14:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("litere2.in", "r", stdin);
^
user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("litere2.out", "w", stdout);
^
user.cpp:20:23: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(buf, sz, stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !