Borderou de evaluare (job #2270441)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 27 octombrie 2018 11:05:55
Problema Termite Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:171:45: error: no match for 'operator=' (operand types are 'BS' and '<brace-enclosed initializer list>') qr[i] = {0, (1 << 30) - 1, 0, i, t, u, v}; ^ main.cpp:14:8: note: candidate: constexpr BS& BS::operator=(const BS&) struct BS { ^~ main.cpp:14:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const BS&' main.cpp:14:8: note: candidate: constexpr BS& BS::operator=(BS&&) main.cpp:14:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'BS&&' main.cpp:134:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("termite.in", "r", stdin); ^ main.cpp:135:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("termite.out", "w", stdout); ^ main.cpp:138:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &n, &m, &k, &q); ^ main.cpp:140:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &term[i]); ^ main.cpp:143:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &u, &v, &c); ^ main.cpp:170:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &u, &v, &t); ^ Non zero exit status: 1

Ceva nu functioneaza?