Borderou de evaluare (job #2731738)
Utilizator | Data | 28 martie 2021 10:01:21 | |
---|---|---|---|
Problema | Countfefete | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void unite(int, int, bool, int)':
main.cpp:8:11: error: request for member 'second' in 'val[a]', which is of non-class type 'std::pair<long long int, long long int> [31]'
#define s second
^
main.cpp:43:20: note: in expansion of macro 's'
add(val[a].s, val[b].f, i);
^
main.cpp:7:11: error: request for member 'first' in 'val[b]', which is of non-class type 'std::pair<long long int, long long int> [31]'
#define f first
^
main.cpp:43:30: note: in expansion of macro 'f'
add(val[a].s, val[b].f, i);
^
main.cpp:7:11: error: request for member 'first' in 'val[a]', which is of non-class type 'std::pair<long long int, long long int> [31]'
#define f first
^
main.cpp:44:20: note: in expansion of macro 'f'
add(val[a].f, val[b].s, i);
^
main.cpp:8:11: error: request for member 'second' in 'val[b]', which is of non-class type 'std::pair<long long int, long long int> [31]'
#define s second
^
main.cpp:44:30: note: in expansion of macro 's'
add(val[a].f, val[b].s, i);
^
main.cpp: In function 'int main()':
main.cpp:59:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("countfefete.in", "r", stdin);
^
main.cpp:60:44: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("countfefete.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 !