Borderou de evaluare (job #2148516)
Utilizator | Data | 1 martie 2018 19:30:24 | |
---|---|---|---|
Problema | Cifre2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:42: error: ‘int index’ redeclared as different kind of symbol
int n, v[100001], ok, d, poz, poz2, sum, index, k;
^
In file included from /usr/include/c++/5/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’
index (const char *__s, int __c) __THROW
^
user.cpp: In function ‘int main()’:
user.cpp:24:40: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
for (int i = 1; i <= k && index <= n; i++) {
^
user.cpp:37:12: error: no post-increment operator for type
index++;
^
user.cpp:41:31: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
}while (sum > 0 || index <= n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !