Borderou de evaluare (job #1838669)
Utilizator | Data | 1 ianuarie 2017 16:12:53 | |
---|---|---|---|
Problema | Numere 5 | 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:16:24: error: ‘MAX_N’ was not declared in this scope
if (x != 0 && x <= MAX_N) {
^
user.cpp:20:28: error: ‘MAX_N’ was not declared in this scope
for (i = 1; i <= my_min (MAX_N, N * N); ++i) {
^
user.cpp:27:20: error: ‘MAX_N’ was not declared in this scope
for (i = my_min (MAX_N, N * N); i >= 1; --i) {
^
user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("numere5.in", "r", stdin);
^
user.cpp:11:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("numere5.out", "w", stdout);
^
user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &N);
^
user.cpp:15:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !