Borderou de evaluare (job #1689015)
Utilizator | Data | 13 aprilie 2016 21:12:00 | |
---|---|---|---|
Problema | Infasuratoare convexa | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:11: error: ‘int index’ redeclared as different kind of symbol
int n,top,index;
^
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:24:11: error: overloaded function with no contextual type information
index = 0;v[index].x = INF; v[index].y = INF;
^
user.cpp:24:22: error: invalid types ‘punct [120005][<unresolved overloaded function type>]’ for array subscript
index = 0;v[index].x = INF; v[index].y = INF;
^
user.cpp:24:40: error: invalid types ‘punct [120005][<unresolved overloaded function type>]’ for array subscript
index = 0;v[index].x = INF; v[index].y = INF;
^
user.cpp:27:19: error: invalid types ‘punct [120005][<unresolved overloaded function type>]’ for array subscript
if(v[index].x == v[i].x && v[index].y > v[index].y){
^
user.cpp:27:43: error: invalid types ‘punct [120005][<unresolved overloaded function type>]’ for array subscript
if(v[index].x == v[i].x && v[index].y > v[index].y){
^
user.cpp:27:56: error: invalid types ‘punct [120005][<unresolved overloaded function type>]’ for array subscript
if(v[index].x == v[i].x && v[index].y > v[index].y){
^
user.cpp:28:19: error: overloaded function with no contextual type information
index = i;
^
user.cpp:30:19: error: invalid types ‘punct [120005][<unresolved overloaded function type>]’ for array subscript
if(v[index].x > v[i].x){
^
user.cpp:31:19: error: overloaded function with no contextual type information
index = i;
^
user.cpp:34:17: error: invalid types ‘punct [120005][<unresolved overloaded function type>]’ for array subscript
swap(v[index],v[1]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !