Borderou de evaluare (job #1189570)

Utilizator SpiderManSimoiu Robert SpiderMan Data 23 mai 2014 10:40:09
Problema Matperm2 Status done
Runda Concursul National de Soft Grigore Moisil Lugoj, Clasele 11-12 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:25: error: ‘int y1’ redeclared as different kind of symbol int N, M, P, Q, x1, x2, y1, y2, lin[MAX], col[MAX], P1[MAX], P2[MAX]; ^ 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/utility:68, from /usr/include/c++/4.8/algorithm:60, 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:56:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=] scanf("%d %d %d %d", &x1, &y1, &x2, &y2); ^ user.cpp:57:22: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript swap(A[x1][y1], A[x2][y2]); ^ user.cpp:18:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matperm2.in", "r", stdin); ^ user.cpp:19:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matperm2.out", "w", stdout); ^ user.cpp:21:34: 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:28:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", P1 + i); ^ user.cpp:30:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", P2 + j); ^ user.cpp:55:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (scanf("%d", &Q); Q; --Q) { ^ user.cpp:56:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &x1, &y1, &x2, &y2); ^

Ceva nu functioneaza?