Borderou de evaluare (job #1224062)
Utilizator | Data | 29 august 2014 16:00:02 | |
---|---|---|---|
Problema | Paranteze2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:5: error: ‘int index’ redeclared as different kind of symbol
int index=0,i=0;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:2:
/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:15:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<strlen(s))
^
user.cpp:18:18: error: no post-increment operator for type
index++;
^
user.cpp:21:18: error: no post-decrement operator for type
index--;
^
user.cpp:22:22: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>’
if(index>0)
^
user.cpp:24:28: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
else if(index==0)
^
user.cpp:11:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("paranteze2.in","r",stdin);
^
user.cpp:12:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("paranteze2.out","w",stdout);
^
user.cpp:14:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !