Borderou de evaluare (job #1351966)
Utilizator | Data | 21 februarie 2015 11:48:24 | |
---|---|---|---|
Problema | Por Costel si Azerah | Status | done |
Runda | ONIS 2015, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:11: error: redeclaration of ‘int i’
int p=n,i=0;
^
user.cpp:24:10: error: ‘int i’ previously declared here
for(int i=0;i<t;i++){
^
user.cpp:35:57: error: expression cannot be used as a function
else fprintf(g,"%d\n",mod(6(decrypt2(2,p,1000000007)-1),1000000007));
^
user.cpp:4:21: note: in definition of macro ‘mod’
#define mod(a,b) (((a)%(b))<0 ? -(a)%(b):(a)%(b))
^
user.cpp:35:57: error: expression cannot be used as a function
else fprintf(g,"%d\n",mod(6(decrypt2(2,p,1000000007)-1),1000000007));
^
user.cpp:4:35: note: in definition of macro ‘mod’
#define mod(a,b) (((a)%(b))<0 ? -(a)%(b):(a)%(b))
^
user.cpp:35:57: error: expression cannot be used as a function
else fprintf(g,"%d\n",mod(6(decrypt2(2,p,1000000007)-1),1000000007));
^
user.cpp:4:43: note: in definition of macro ‘mod’
#define mod(a,b) (((a)%(b))<0 ? -(a)%(b):(a)%(b))
^
user.cpp:21:10: warning: unused variable ‘x’ [-Wunused-variable]
int t,n,x,*s;
^
user.cpp:23:19: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&t);
^
user.cpp:25:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,s);
^
user.cpp:30:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",s+j);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !