Borderou de evaluare (job #1584691)
Utilizator | Data | 30 ianuarie 2016 13:18:35 | |
---|---|---|---|
Problema | Principiul includerii si excluderii | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:26: warning: format ‘%d’ expects a matching ‘int*’ argument [-Wformat=]
scanf("%d%d%d",&a,&b);
^
user.cpp:26:10: error: ‘i’ was not declared in this scope
for(i=0;i<(i<<q);i++)
^
user.cpp:28:10: error: ‘nr’ was not declared in this scope
nr=0;
^
user.cpp:30:13: error: ‘prod’ was not declared in this scope
prod=1;
^
user.cpp:32:13: error: ‘prod’ was not declared in this scope
prod=v[i];
^
user.cpp:33:14: error: ‘j’ was not declared in this scope
for(j=1;j<k;j++)
^
user.cpp:33:20: error: ‘k’ was not declared in this scope
for(j=1;j<k;j++)
^
user.cpp:38:18: error: ‘prod’ was not declared in this scope
prod*=v[j];
^
user.cpp:42:13: error: ‘s’ was not declared in this scope
s+=a/prod;
^
user.cpp:42:18: error: ‘prod’ was not declared in this scope
s+=a/prod;
^
user.cpp:44:13: error: ‘s’ was not declared in this scope
s-=a/prod;
^
user.cpp:44:18: error: ‘prod’ was not declared in this scope
s-=a/prod;
^
user.cpp:6:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pinex.in","r",stdin);
^
user.cpp:7:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pinex.out","w",stdout);
^
user.cpp:8:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
user.cpp:11:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !