Borderou de evaluare (job #1497282)
Utilizator | Data | 6 octombrie 2015 16:53:22 | |
---|---|---|---|
Problema | Distante | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:19: error: ‘int index’ redeclared as different kind of symbol
int i, n, v[103], index, t;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘int main()’:
user.cpp:12:14: error: overloaded function with no contextual type information
index=0;
^
user.cpp:14:29: error: invalid types ‘int [103][<unresolved overloaded function type>]’ for array subscript
if(v[i]>=v[index])
^
user.cpp:15:22: error: overloaded function with no contextual type information
index=i;
^
user.cpp:16:13: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘bool’
if(!index){
^
user.cpp:16:13: error: in argument to unary !
user.cpp:22:18: error: invalid types ‘int [103][<unresolved overloaded function type>]’ for array subscript
--v[index];
^
user.cpp:6:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("in.txt", "r", stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !