Borderou de evaluare (job #1405638)
Utilizator | Oncescu Costin geniucos | Data | 29 martie 2015 14:41:14 |
---|---|---|---|
Problema | Ulei | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:87: error: conflicting declaration ‘std::unordered_map<int, int> ap [15009]’
unordered_map < int , int > prec[15009], nxt[15009], cul[15009], init[15009], ap[15009];
^
user.cpp:8:25: error: ‘ap’ has a previous declaration as ‘int ap [100009]’
int T, N, M, t[100009], ap[100009], x[100009], y[100009], c[100009];
^
user.cpp: In function ‘int main()’:
user.cpp:74:40: error: invalid types ‘int[int]’ for array subscript
ap[x[i]][y[i] ++, ap[y[i]][x[i]] ++;
^
user.cpp:74:44: error: expected ‘]’ before ‘;’ token
ap[x[i]][y[i] ++, ap[y[i]][x[i]] ++;
^
user.cpp:75:26: error: invalid types ‘int[int]’ for array subscript
if (ap[x[i]][y[i]] == 2)
^
user.cpp:88:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int k = 0; k < v[i].size() / 2; k++)
^
user.cpp:117:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=1; j<v[i].size(); j++)
^
user.cpp:152:15: error: request for member ‘clear’ in ‘ap[i]’, which is of non-class type ‘int’
ap[i].clear ();
^
user.cpp:63:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ulei.in", "r", stdin);
^
user.cpp:64:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ulei.out", "w", stdout);
^
user.cpp: In function ‘void Next()’:
user.cpp:166:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread (sir, 1, maxl, stdin), pos = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !