Borderou de evaluare (job #2697196)
Utilizator | Data | 17 ianuarie 2021 19:39:45 | |
---|---|---|---|
Problema | Critice | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:7: error: expected nested-name-specifier before 'namesace'
using namesace std;
^~~~~~~~
main.cpp:5:1: error: 'vector' does not name a type
vector<int> a[1002];
^~~~~~
main.cpp: In function 'int bfs()':
main.cpp:27:24: error: 'a' was not declared in this scope
for(i = 0; i < a[x].size(); ++i)
^
main.cpp: In function 'void cale(int, int)':
main.cpp:53:24: error: 'a' was not declared in this scope
for(i = 0; i < a[x].size(); ++i)
^
main.cpp: In function 'int main()':
main.cpp:66:1: error: 'ifstream' was not declared in this scope
ifstream f("critice.in");
^~~~~~~~
main.cpp:66:1: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/iosfwd:162:34: note: 'std::ifstream'
typedef basic_ifstream<char> ifstream;
^~~~~~~~
main.cpp:67:1: error: 'ofstream' was not declared in this scope
ofstream g("critice.out");
^~~~~~~~
main.cpp:67:1: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/c++/6/iosfwd:165:34: note: 'std::ofstream'
typedef basic_ofstream<char> ofstream;
^~~~~~~~
main.cpp:70:6: error: invalid operands of types 'int [1002][1002]' and 'int' to binary 'operator>>'
f>>N>>M;
~^~~
main.cpp:73:9: error: invalid operands of types 'int [1002][1002]' and 'int' to binary 'operator>>'
f>>x>>y>>z;
~^~~
main.cpp:76:9: error: 'a' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !