Borderou de evaluare (job #1395627)

Utilizator cristina_borzaCristina Borza cristina_borza Data 21 martie 2015 12:41:53
Problema Rox Status done
Runda Urmasii lui Moisil 2015, Clasa a 9-a Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:21: error: ‘int y1’ redeclared as different kind of symbol int u,n,m,q,i,x1,x2,y1,y2; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/iosfwd:38, from /usr/include/c++/4.8/ios:38, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int main()’: user.cpp:23:76: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d %d %d %c",&a[i].li,&a[i].ci,&a[i].lf,&a[i].cf,&a[i].ch); ^ user.cpp:23:76: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:23:76: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:23:76: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:31:27: error: assignment of function ‘double y1(double)’ x1=a[i].li; y1=a[i].ci; ^ user.cpp:31:27: error: cannot convert ‘short int’ to ‘double(double)throw ()’ in assignment user.cpp:33:21: error: invalid types ‘char [1005][double(double)throw ()]’ for array subscript b[x1][y1]++; ^ user.cpp:35:23: error: invalid types ‘char [1005][double(double)throw ()]’ for array subscript b[x2+1][y1]--; ^ user.cpp:41:27: error: assignment of function ‘double y1(double)’ x1=a[i].li; y1=a[i].ci; ^ user.cpp:41:27: error: cannot convert ‘short int’ to ‘double(double)throw ()’ in assignment user.cpp:43:21: error: invalid types ‘char [1005][double(double)throw ()]’ for array subscript b[x1][y1]++; ^ user.cpp:45:23: error: invalid types ‘char [1005][double(double)throw ()]’ for array subscript b[x2+1][y1]--; ^ user.cpp:52:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d",&x1,&y1); ^ user.cpp:53:33: error: invalid types ‘char [1005][double(double)throw ()]’ for array subscript printf("%d\n",sol[x1][y1]); ^ user.cpp:18:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rox.in","r",stdin); ^

Ceva nu functioneaza?