Borderou de evaluare (job #1743194)
Utilizator | Data | 17 august 2016 18:43:53 | |
---|---|---|---|
Problema | Comoditate | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:59:23: error: cannot pass objects of non-trivially-copyable type ‘class std::bitset<100005u>::reference’ through ‘...’
printf("%ld",ans[i]);
^
user.cpp:59:23: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘std::bitset<100005u>::reference’ [-Wformat=]
user.cpp:44:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("comoditate.in","r",stdin);
^
user.cpp:45:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("comoditate.out","w",stdout);
^
user.cpp: In function ‘void getint(int&)’:
user.cpp:33:30: 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, lim, stdin);
^
user.cpp:39:30: 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, lim, stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !