Borderou de evaluare (job #2616833)

Utilizator lookcookAditya Bandekar lookcook Data 20 mai 2020 00:41:59
Problema Tairos 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:33:16: error: conflicting declaration 'std::queue<long long int> q' queue<int> q; ^ main.cpp:16:9: note: previous declaration as 'long long int q' int q; ^ main.cpp:34:7: error: request for member 'emplace' in 'q', which is of non-class type 'long long int' q.emplace(1); ^~~~~~~ main.cpp:36:14: error: request for member 'empty' in 'q', which is of non-class type 'long long int' while (!q.empty()) { ^~~~~ main.cpp:37:19: error: request for member 'front' in 'q', which is of non-class type 'long long int' int u = q.front(); ^~~~~ main.cpp:38:11: error: request for member 'pop' in 'q', which is of non-class type 'long long int' q.pop(); ^~~ main.cpp:42:15: error: request for member 'emplace' in 'q', which is of non-class type 'long long int' q.emplace(v); ^~~~~~~ main.cpp:9:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("tairos.in", "r", stdin); ^ main.cpp:10:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("tairos.out", "w", stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?