Borderou de evaluare (job #3002506)

Utilizator Teodora1314Teodora Oancea-Negoita Teodora1314 Data 14 martie 2023 20:43:44
Problema Pirati Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:3: error: stray '#' in program 1 | - #include <bits/stdc++.h> | ^ main.cpp:1:1: error: expected unqualified-id before '-' token 1 | - #include <bits/stdc++.h> | ^ main.cpp:18:1: error: 'ifstream' does not name a type 18 | ifstream fin("pirati.in"); | ^~~~~~~~ main.cpp:19:1: error: 'ofstream' does not name a type 19 | ofstream fout("pirati.out"); | ^~~~~~~~ main.cpp:24:1: error: 'bitset' does not name a type 24 | bitset<250001> f; | ^~~~~~ main.cpp:31:1: error: 'vector' does not name a type 31 | vector<int> L[250001]; | ^~~~~~ main.cpp: In function 'void Citire()': main.cpp:37:5: error: 'fin' was not declared in this scope 37 | fin >> n >> m >> Q; | ^~~ main.cpp: In function 'void Graf()': main.cpp:98:25: error: 'L' was not declared in this scope 98 | L[p].push_back(q); | ^ main.cpp: In function 'void Dist(int)': main.cpp:108:5: error: 'f' was not declared in this scope 108 | f[p] = 1; | ^ main.cpp:109:18: error: 'L' was not declared in this scope 109 | for (int i : L[p]) | ^ main.cpp: In function 'int main()': main.cpp:126:9: error: 'fin' was not declared in this scope 126 | fin >> xs >> ys >> xf >> yf; | ^~~ main.cpp:129:9: error: 'f' was not declared in this scope 129 | f.reset(); | ^ main.cpp:131:9: error: 'fout' was not declared in this scope 131 | fout << d[q] << "\n"; | ^~~~ main.cpp:133:5: error: 'fout' was not declared in this scope 133 | fout.close(); | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?