Borderou de evaluare (job #2429679)
Utilizator | Data | 10 iunie 2019 20:49:48 | |
---|---|---|---|
Problema | Abc2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: expected ',' or ';' before 'vector'
vector <int> hash[666013];
^~~~~~
main.cpp:9:5: error: 'int index' redeclared as different kind of symbol
int index, X;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'int exist(long long int)':
main.cpp:17:15: error: missing template arguments before '[' token
int l=hash[ind].size();
^
main.cpp:19:18: error: missing template arguments before '[' token
if (hash[ind][i]==x )
^
main.cpp: In function 'int main()':
main.cpp:34:29: error: missing template arguments before '[' token
if (!exist(ind)) hash[ind%mod].push_back(ind);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !