Borderou de evaluare (job #1226558)

Utilizator TimitocArdelean Andrei Timotei Timitoc Data 6 septembrie 2014 10:20:17
Problema Colaj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:22: error: ‘int y1’ redeclared as different kind of symbol int n, m, p, x0 = 1, y1 = 1, xn = 0, ym = 0, nl, nc, rez; ^ 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/cstdio:41, 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 ‘void citire()’: user.cpp:36:50: error: assignment of function ‘double y1(double)’ if (y[i].val == 0 || y[i+1].val == 0) y1 = 0; ^ user.cpp:36:50: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp: In function ‘void sol()’: user.cpp:94:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] nc = y1 + 2 * n - 1; ^ user.cpp:94:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] nc = y1 + 2 * n - 1; ^ user.cpp:94:21: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] nc = y1 + 2 * n - 1; ^ user.cpp:106:22: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] for (int j = y1; j <= nc; j++) ^ user.cpp: In function ‘int main()’: user.cpp:121:30: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] nc = normalizare(y, y1, 2) + y1 + 1; ^ user.cpp:43:5: error: initializing argument 2 of ‘int normalizare(pct*, int, int)’ [-fpermissive] int normalizare(pct z[], int z0, int o) ^ user.cpp:121:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] nc = normalizare(y, y1, 2) + y1 + 1; ^ user.cpp:121:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] nc = normalizare(y, y1, 2) + y1 + 1; ^ user.cpp:121:37: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive] nc = normalizare(y, y1, 2) + y1 + 1; ^ user.cpp: In function ‘void citire()’: user.cpp:28:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &n, &m, &p); ^ user.cpp:31:77: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?