Borderou de evaluare (job #2475877)
Utilizator | Data | 17 octombrie 2019 18:31:40 | |
---|---|---|---|
Problema | Loto | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:27:15: error: template argument 1 is invalid
vector < hash > H[MOD];
^
main.cpp:27:15: error: template argument 2 is invalid
main.cpp: In function 'void Read()':
main.cpp:45:24: error: request for member 'push_back' in 'H[mod]', which is of non-class type 'int'
H[mod].push_back( {s, V[i], V[j], V[k]} );
^~~~~~~~~
main.cpp: In function 'int BS(int, int, int, int)':
main.cpp:57:17: error: invalid types 'int[int]' for array subscript
if( H[x][mid].sum == val )return mid;
^
main.cpp:58:17: error: invalid types 'int[int]' for array subscript
if( H[x][mid].sum < val ) return BS( x, lf, mid - 1, val );
^
main.cpp: In function 'void Loto()':
main.cpp:71:28: error: request for member 'size' in 'H[mod]', which is of non-class type 'int'
if( H[mod].size() )
^~~~
main.cpp:73:50: error: request for member 'size' in 'H[mod]', which is of non-class type 'int'
int pos = BS( mod, 0, H[mod].size()-1, s );
^~~~
main.cpp:77:88: error: invalid types 'int[int]' for array subscript
fout << V[i] << ' ' << V[j] << ' ' << V[k] << ' ' << H[mod][pos].a << ' ' << H[mod][pos].b << ' ' << H[mod][pos].c;
^
main.cpp:77:112: error: invalid types 'int[int]' for array subscript
fout << V[i] << ' ' << V[j] << ' ' << V[k] << ' ' << H[mod][pos].a << ' ' << H[mod][pos].b << ' ' << H[mod][pos].c;
^
main.cpp:77:136: error: invalid types 'int[int]' for array subscript
fout << V[i] << ' ' << V[j] << ' ' << V[k] << ' ' << H[mod][pos].a << ' ' << H[mod][pos].b << ' ' << H[mod][pos].c;
^
main.cpp: In function 'int BS(int, int, int, int)':
main.cpp:60:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !