Borderou de evaluare (job #1359190)
Utilizator | Data | 24 februarie 2015 21:36:32 | |
---|---|---|---|
Problema | Ben | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:28: error: redefinition of ‘int pompa’
int n,i,x,y,pompa,A[30005],pompa=1;
^
user.cpp:5:13: error: ‘int pompa’ previously declared here
int n,i,x,y,pompa,A[30005],pompa=1;
^
user.cpp: In function ‘int main()’:
user.cpp:31:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
printf("%d %d\n",pompa,(1LL*pompa*pompa)%MOD);
^
user.cpp:22:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ben.in","r",stdin);
^
user.cpp:23:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ben.out","w",stdout);
^
user.cpp:24:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:27:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !