Borderou de evaluare (job #1483684)
Utilizator | Data | 9 septembrie 2015 19:12:39 | |
---|---|---|---|
Problema | Ratina | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int degree(int, int)’:
user.cpp:27:26: error: invalid types ‘int[int]’ for array subscript
int l = min(l[v[p1].x], l[v[p2].x]);
^
user.cpp:27:38: error: invalid types ‘int[int]’ for array subscript
int l = min(l[v[p1].x], l[v[p2].x]);
^
user.cpp: In function ‘void read()’:
user.cpp:43:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.in", "r", stdin);
^
user.cpp:44:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
user.cpp:47:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(v[i].s);
^
user.cpp: In function ‘void write()’:
user.cpp:82:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ratina.out", "w", stdout);
^
user.cpp:85:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:89:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &q[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !