Borderou de evaluare (job #1624730)
Utilizator | Data | 2 martie 2016 13:16:28 | |
---|---|---|---|
Problema | Galagie | 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:12:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d",&n);
^
user.cpp:14:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int (*)[100005]’ [-Wformat=]
scanf("%d",&v);
^
user.cpp:18:10: error: incompatible types in assignment of ‘long long int*’ to ‘long long int [100005]’
s=s[i-1]+v;
^
user.cpp:19:29: error: invalid operands of types ‘long long int’ and ‘long long int [100005]’ to binary ‘operator*’
sum=(sum[i-1]+(i-1)*v-s[i-1])%MOD;
^
user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("galagie.in","r",stdin);
^
user.cpp:11:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("galagie.out","w",stdout);
^
user.cpp:12:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:14:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !