Borderou de evaluare (job #2731739)

Utilizator thecodingwizardNathan Wang thecodingwizard Data 28 martie 2021 10:02:37
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)': 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:46:24: 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:46:34: 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:47:24: 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:47:34: note: in expansion of macro 's' add(val[a].f, val[b].s, i); ^ main.cpp: In function 'int main()': main.cpp:65: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:66: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?