Borderou de evaluare (job #2688090)

Utilizator Cristian1997Vintur Cristian Cristian1997 Data 20 decembrie 2020 11:33:38
Problema Prieteni2 Status done
Runda fmi-no-stress-10 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void add(int)': main.cpp:61:7: error: expected unqualified-id before '[' token auto [a, b] = *it1; ^ main.cpp:62:7: error: expected unqualified-id before '[' token auto [c, d] = *it2; ^ main.cpp:65:15: error: 'a' was not declared in this scope intv.emplace(a, d); ^ main.cpp:65:18: error: 'd' was not declared in this scope intv.emplace(a, d); ^ main.cpp: In function 'void remove(int)': main.cpp:74:7: error: expected unqualified-id before '[' token auto [a, b] = *it; ^ main.cpp:76:15: error: 'a' was not declared in this scope intv.emplace(a, i); ^ main.cpp:77:22: error: 'b' was not declared in this scope intv.emplace(i + 1, b); ^ main.cpp: In function 'int main()': main.cpp:98:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("prieteni2.in", "r", stdin); ^ main.cpp:99:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("prieteni2.out", "w", stdout); ^ main.cpp:103:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:108:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] for(scanf("%d", &q); q; --q) { ^ main.cpp:109:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &type); ^ main.cpp:112:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &i); --i; ^ main.cpp:115:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &i); --i; ^ main.cpp:118:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); --a; --b; ^ Non zero exit status: 1

Ceva nu functioneaza?