Borderou de evaluare (job #1632302)
Utilizator | Data | 6 martie 2016 00:15:51 | |
---|---|---|---|
Problema | Produse | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void computeRes(std::vector<int>, int, int)’:
user.cpp:14:27: error: invalid operands of types ‘long int’ and ‘double’ to binary ‘operator%’
res = res % (pow(10,9)+7);
^
user.cpp: In function ‘int main()’:
user.cpp:24:6: error: ‘i’ was not declared in this scope
for(i = 0; i < N; i++){
^
user.cpp:20:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("produse.in", "r", stdin);
^
user.cpp:21:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("produse.out", "w", stdout);
^
user.cpp:23:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ", &N, &D);
^
user.cpp:25:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &aux);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !