Borderou de evaluare (job #1541413)
Utilizator | Data | 4 decembrie 2015 00:22:10 | |
---|---|---|---|
Problema | Autobuze | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:28: error: ‘mod’ was not declared in this scope
vector< pair<int, int> > H[mod + 1];
^
user.cpp: In function ‘int findH(int)’:
user.cpp:64:25: error: ‘H’ was not declared in this scope
for (int i = 0; i < H[r].size (); i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:81:9: error: ‘H’ was not declared in this scope
H[ f(v[i]) ].push_back( make_pair(v[i], i) );
^
user.cpp:90:26: error: ‘H’ was not declared in this scope
uniondj (H[f(i)][pos].second, n);
^
user.cpp:74:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("autobuze.in", "r", stdin);
^
user.cpp:75:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("autobuze.out", "w", stdout);
^
user.cpp:77:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &N);
^
user.cpp:80:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !