Borderou de evaluare (job #1248507)
Utilizator | Data | 25 octombrie 2014 13:14:04 | |
---|---|---|---|
Problema | Deque | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:24: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
if (q.front==i-k)front++;
^
user.cpp:23:26: error: ‘front’ was not declared in this scope
if (q.front==i-k)front++;
^
user.cpp:24:26: error: ‘a’ was not declared in this scope
if (i>=k)sum=sum+a[q.front];
^
user.cpp:26:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=]
printf ("%d" , &sum ) ;
^
user.cpp:14:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("deque.in" , "r" , stdin );
^
user.cpp:15:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("deque.out" , "w" , stdout );
^
user.cpp:16:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d" , &n , &k );
^
user.cpp:18:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d" , &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !