Borderou de evaluare (job #2629660)

Utilizator segtreapMihnea Andreescu segtreap Data 22 iunie 2020 10:07:23
Problema Shop 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:78:3: error: 'vector' was not declared in this scope vector<T> v; ^~~~~~ main.cpp:78:11: error: expected primary-expression before '>' token vector<T> v; ^ main.cpp:78:13: error: 'v' was not declared in this scope vector<T> v; ^ main.cpp:79:10: error: expected primary-expression before 'int' vector<int> take(n, 0); ^~~ main.cpp:90:19: error: unable to deduce 'auto&&' from 'v' for (auto &it : v) { ^ main.cpp:91:5: error: 'take' was not declared in this scope take[it.i] = min(it.b, w / it.a); ^~~~ main.cpp:95:19: error: 'take' was not declared in this scope for (auto &it : take) { ^~~~ main.cpp:99:19: error: 'take' was not declared in this scope for (auto &it : take) { ^~~~ main.cpp:73:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("input", "r", stdin); ^ main.cpp:42:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] #define files(TASK_NAME) read(TASK_NAME); write(TASK_NAME) ^ main.cpp:75:5: note: in expansion of macro 'files' files(TASK_NAME); ^~~~~ main.cpp:75:21: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] files(TASK_NAME); ^ Non zero exit status: 1

Ceva nu functioneaza?