Borderou de evaluare (job #1585532)
Utilizator | Data | 31 ianuarie 2016 10:41:06 | |
---|---|---|---|
Problema | Cobai | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:20: error: ‘int y0’ redeclared as different kind of symbol
int n,m,len,a,b,x0,y0;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:85:27: error: assignment of function ‘double y0(double)’
x0 = i,y0 = j;
^
user.cpp:85:27: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:98:17: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
dfs(x0,y0,0);
^
user.cpp:12:6: error: initializing argument 2 of ‘void dfs(int, int, int)’ [-fpermissive]
void dfs(int i,int j,int k)
^
user.cpp:71:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cobai.in","r",stdin);
^
user.cpp:72:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cobai.out","w",stdout);
^
user.cpp:74:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
user.cpp:78:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",ar[i] + 1);
^
user.cpp:95:19: 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 !