Borderou de evaluare (job #1836536)
| Utilizator | Data | 28 decembrie 2016 14:25:45 | |
|---|---|---|---|
| Problema | Concurs2 | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:74:49: error: cannot pass objects of non-trivially-copyable type ‘class std::vector<int>’ through ‘...’
if(l[i]) printf("%d %d\n",i,v[l[i]-1]);
^
user.cpp:74:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<int>’ [-Wformat=]
if(l[i]) printf("%d %d\n",i,v[l[i]-1]);
^
user.cpp:22:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("concurs2.in","r",stdin);
^
user.cpp:23:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("concurs2.out","w",stdout);
^
user.cpp:24:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:27:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
