Borderou de evaluare (job #2609191)

Utilizator theodora_bogdanBogdan Theodora theodora_bogdan Data 2 mai 2020 12:13:48
Problema Alee Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:1: error: expected ',' or ';' before 'ofstream' ofstream fout("alee.out") ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:17:5: error: 'POINT' was not declared in this scope POINT start, stop, newpoint; ^~~~~ main.cpp:31:5: error: 'start' was not declared in this scope start.x=x1; ^~~~~ main.cpp:35:11: error: the value of 'POINT' is not usable in a constant expression queue<POINT> q; ^~~~~ main.cpp:17:5: note: 'POINT' was not declared 'constexpr' POINT start, stop, newpoint; ^~~~~ main.cpp:35:16: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Sequence> class std::queue' queue<POINT> q; ^ main.cpp:35:16: note: expected a type, got 'POINT' main.cpp:35:16: error: template argument 2 is invalid main.cpp:36:7: error: request for member 'push' in 'q', which is of non-class type 'int' q.push(start); ^~~~ main.cpp:37:14: error: request for member 'empty' in 'q', which is of non-class type 'int' while(!q.empty()) ^~~~~ main.cpp:39:19: error: request for member 'front' in 'q', which is of non-class type 'int' start = q.front(); ^~~~~ main.cpp:42:13: error: 'newpoint' was not declared in this scope newpoint.x = start.x + dx[i]; ^~~~~~~~ main.cpp:47:19: error: request for member 'push' in 'q', which is of non-class type 'int' q.push(newpoint); ^~~~ main.cpp:50:11: error: request for member 'pop' in 'q', which is of non-class type 'int' q.pop(); ^~~ main.cpp:52:5: error: 'fout' was not declared in this scope fout<<parc[y1][y2]; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?