Borderou de evaluare (job #989416)

Utilizator cosmyoPaunel Cosmin cosmyo Data 25 august 2013 16:45:17
Problema Radare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:30: error: ‘int exit [3003]’ redeclared as different kind of symbol int d[N][P], enter[N], exit[N], nodes[N], invEnter[N]; ^ In file included from /usr/local/include/c++/4.8.0/cstdlib:72:0, from /usr/local/include/c++/4.8.0/ext/string_conversions.h:41, from /usr/local/include/c++/4.8.0/bits/basic_string.h:2817, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40, from /usr/local/include/c++/4.8.0/bits/ios_base.h:41, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/ostream:38, from /usr/local/include/c++/4.8.0/iostream:39, from user.cpp:1: /usr/include/stdlib.h:543:13: error: previous declaration of ‘void exit(int)’ extern void exit (int __status) __THROW __attribute__ ((__noreturn__)); ^ user.cpp: In function ‘void df(int)’: user.cpp:18:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < a[k].size(); ++i) ^ user.cpp:26:11: warning: pointer to a function used in arithmetic [-Wpointer-arith] exit[k] = nr; ^ user.cpp:26:13: error: assignment of read-only location ‘*(exit + ((sizetype)k))’ exit[k] = nr; ^ user.cpp:26:13: error: cannot convert ‘int’ to ‘void(int)throw ()’ in assignment user.cpp: In function ‘int main()’: user.cpp:72:35: warning: pointer to a function used in arithmetic [-Wpointer-arith] d[exit[invEnter[i]] + 1][j] += d[i][j] * pow2[nodes[invEnter[i]] - 1]; ^ user.cpp:72:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] d[exit[invEnter[i]] + 1][j] += d[i][j] * pow2[nodes[invEnter[i]] - 1]; ^ user.cpp:72:40: error: invalid types ‘int [3003][3505][void (*)(int)throw ()]’ for array subscript d[exit[invEnter[i]] + 1][j] += d[i][j] * pow2[nodes[invEnter[i]] - 1]; ^ user.cpp:73:41: warning: pointer to a function used in arithmetic [-Wpointer-arith] while(d[exit[invEnter[i]] + 1][j] >= MOD) ^ user.cpp:73:45: warning: pointer to a function used in arithmetic [-Wpointer-arith] while(d[exit[invEnter[i]] + 1][j] >= MOD) ^ user.cpp:73:46: error: invalid types ‘int [3003][3505][void (*)(int)throw ()]’ for array subscript while(d[exit[invEnter[i]] + 1][j] >= MOD) ^ user.cpp:75:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] d[exit[invEnter[i]] + 1][j] -= MOD; ^ user.cpp:75:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?