Borderou de evaluare (job #2730849)

Utilizator Adela_PetrePetre Adela Adela_Petre Data 26 martie 2021 22:33:43
Problema Int Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:7: error: expected nested-name-specifier before 'namepace' using namepace std; ^~~~~~~~ main.cpp:8:1: error: 'ifstream' does not name a type ifstream fin("int.in"); ^~~~~~~~ main.cpp:9:1: error: 'ofstream' does not name a type ofstream fou("int.out"); ^~~~~~~~ main.cpp:17:1: error: 'vector' does not name a type vector <f> vec; ^~~~~~ main.cpp: In function 'int main()': main.cpp:26:5: error: 'fin' was not declared in this scope fin >> N; ^~~ main.cpp:30:9: error: 'vec' was not declared in this scope vec.push_back({x, y}); ^~~ main.cpp:33:10: error: 'v' was not declared in this scope sort(v.begin(), v.end(), cmp); ^ main.cpp:33:33: error: 'sort' was not declared in this scope sort(v.begin(), v.end(), cmp); ^ main.cpp:33:33: note: suggested alternative: In file included from /usr/include/c++/6/algorithm:62:0, from main.cpp:4: /usr/include/c++/6/bits/stl_algo.h:4727:5: note: 'std::sort' sort(_RandomAccessIterator __first, _RandomAccessIterator __last, ^~~~ main.cpp:39:13: error: 'vec' was not declared in this scope if (vec[i].x >= k) ^~~ main.cpp:45:5: error: 'fou' was not declared in this scope fou << nr; ^~~ Non zero exit status: 1

Ceva nu functioneaza?