Borderou de evaluare (job #1047252)
Utilizator | Data | 4 decembrie 2013 09:04:17 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: ‘vector’ does not name a type
vector <int> H[mod];
^
user.cpp: In function ‘int find(int)’:
user.cpp:10:20: error: ‘H’ was not declared in this scope
for(int i=0; i<H[rest].size(); i++)
^
user.cpp: In function ‘void insert(int)’:
user.cpp:15:15: error: ‘findPos’ was not declared in this scope
{ if(findPos(x) == -1)
^
user.cpp:16:4: error: ‘H’ was not declared in this scope
H[rest].push_back(x);
^
user.cpp: At global scope:
user.cpp:19:6: error: expected unqualified-id before ‘delete’
void delete(int x)
^
user.cpp: In function ‘int main()’:
user.cpp:29:1: error: ‘ifstream’ was not declared in this scope
ifstream f("hashuri.in");
^
user.cpp:29:1: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:29:10: error: expected ‘;’ before ‘f’
ifstream f("hashuri.in");
^
user.cpp:30:1: error: ‘ofstream’ was not declared in this scope
ofstream g("hashuri.out");
^
user.cpp:30:1: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/ios:38:0,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:1:
/usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:30:10: error: expected ‘;’ before ‘g’
ofstream g("hashuri.out");
^
user.cpp:31:2: error: ‘f’ was not declared in this scope
f>>n;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !