Borderou de evaluare (job #1318589)
Utilizator | Data | 16 ianuarie 2015 10:02:37 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void insertElement(long long int)’:
user.cpp:10:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < v[q].size(); i++)
^
user.cpp: In function ‘bool isInSet(long long int)’:
user.cpp:19:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ; i < v[q].size() ; i++)
^
user.cpp: In function ‘int main()’:
user.cpp:42:7: error: request for member ‘resize’ in ‘v’, which is of non-class type ‘std::vector<long long int> [700000]’
v.resize(4000);
^
user.cpp:60:45: warning: second operand of conditional expression has no effect [-Wunused-value]
cout << (isInSet(b)) ? "1" : "0";
^
user.cpp:60:45: warning: third operand of conditional expression has no effect [-Wunused-value]
user.cpp:40:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("hashuri.in", "r", stdin);
^
user.cpp:41:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("hashuri.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !