Borderou de evaluare (job #1263422)
| Utilizator | Data | 14 noiembrie 2014 19:03:36 | |
|---|---|---|---|
| Problema | Dtcsu | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool isGood(long int, long long int)’:
user.cpp:43:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(long i=0;i<H[sour].size();i++)
^
user.cpp: In function ‘int main()’:
user.cpp:56:14: warning: unused variable ‘dest’ [-Wunused-variable]
long dest = (1LL*x)%mod;
^
user.cpp:67:22: error: could not convert ‘HH.std::unordered_set<_Value, _Hash, _Pred, _Alloc>::find<long long int, std::hash<long long int>, std::equal_to<long long int>, std::allocator<long long int> >((*(const key_type*)(& x)))’ from ‘std::unordered_set<long long int>::iterator {aka std::__detail::_Node_iterator<long long int, true, false>}’ to ‘bool’
if(HH.find(x)) Ans++;
^
user.cpp:65:14: warning: unused variable ‘dest’ [-Wunused-variable]
long dest = (1LL*x) % mod;
^
user.cpp: In function ‘long long int getLong()’:
user.cpp:28:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(Buff,1,maxBuf,stdin);
^
user.cpp:36:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(Buff,1,maxBuf,stdin);
^
user.cpp: In function ‘int main()’:
user.cpp:50:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dtcsu.in","r",stdin);
^
user.cpp:51:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dtcsu.out","w",stdout);
^
user.cpp:52:31: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(Buff,1,maxBuf,stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
