Borderou de evaluare (job #1454841)
Utilizator | Data | 27 iunie 2015 11:47:43 | |
---|---|---|---|
Problema | Arb4 | Status | done |
Runda | Algoritmiada 2015 Runda 3 Seniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:76:5: error: ‘int index’ redeclared as different kind of symbol
int index, first[NMAX], last[NMAX];
^
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 ‘void DFS(int, int)’:
user.cpp:80:21: error: no pre-increment operator for type
first[node] = ++index;
^
user.cpp:95:16: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
last[node] = index;
^
user.cpp: In function ‘int main()’:
user.cpp:153:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arb4.in","r",stdin);
^
user.cpp:154:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arb4.out","w",stdout);
^
user.cpp:155:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&n,&m);
^
user.cpp:159:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n",&x,&y,&c);
^
user.cpp:176:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n",&x,&y,&c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !