Borderou de evaluare (job #1819124)
Utilizator | Data | 30 noiembrie 2016 10:58:28 | |
---|---|---|---|
Problema | Reguli | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:40:36: error: invalid operands of types ‘int’ and ‘const char [2]’ to binary ‘operator<<’
cout << result = n - nxt[n] << "\n";
^
user.cpp:40:24: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
cout << result = n - nxt[n] << "\n";
^
user.cpp:22:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reguli.in", "r", stdin);
^
user.cpp:23:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reguli.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !