Borderou de evaluare (job #1501299)
Utilizator | Data | 13 octombrie 2015 10:57:49 | |
---|---|---|---|
Problema | Grupuri | 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:7:24: error: invalid operands of types ‘int*’ and ‘int’ to binary ‘operator&’
scanf("%d %d", &k &n);
^
user.cpp:18:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for(i=1;i=n;i++)
^
user.cpp:20:16: error: ‘v’ was not declared in this scope
if(v[i]>=m)
^
user.cpp:33:18: error: ‘print’ was not declared in this scope
print("%d", c);
^
user.cpp:4:48: warning: unused variable ‘s’ [-Wunused-variable]
int i,n,k,m,dr,st,a[1000000],c,su,nranim=0,s=0;
^
user.cpp:5:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("grupuri.in","r",stdin);
^
user.cpp:6:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("grupuri.out","w",stdout);
^
user.cpp:10:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !