Borderou de evaluare (job #1105218)

Utilizator marinutzacatana marina marinutza Data 11 februarie 2014 16:56:13
Problema Maxq Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:13: warning: ISO C99 requires whitespace after the macro name [enabled by default] #define nmax; ^ user.cpp:3:13: error: expected primary-expression before ‘;’ token #define nmax; ^ user.cpp:13:9: note: in expansion of macro ‘nmax’ } arb[2*nmax-1],sol; ^ user.cpp:3:13: error: expected ‘]’ before ‘;’ token #define nmax; ^ user.cpp:13:9: note: in expansion of macro ‘nmax’ } arb[2*nmax-1],sol; ^ user.cpp:13:13: error: expected unqualified-id before ‘-’ token } arb[2*nmax-1],sol; ^ user.cpp:14:30: error: ISO C++ forbids declaration of ‘ssm’ with no type [-fpermissive] ssm(int a,int b,int st,int dr) ^ user.cpp: In function ‘int ssm(int, int, int, int)’: user.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘void update(int, int, int, int)’: user.cpp:22:3: error: ‘arb’ was not declared in this scope arb[k].sum=arb[k].st=arb[k].dr=arb[k].mij=x; ^ user.cpp:31:19: error: too few arguments to function ‘void update(int, int, int, int)’ update(2*k,st,m); ^ user.cpp:18:6: note: declared here void update(int k,int st,int dr,int i) ^ user.cpp:35:23: error: too few arguments to function ‘void update(int, int, int, int)’ update(2*k+1,m+1,dr); ^ user.cpp:18:6: note: declared here void update(int k,int st,int dr,int i) ^ user.cpp: In function ‘int main()’: user.cpp:50:3: error: ‘arb’ was not declared in this scope arb[r].st=max() ^ user.cpp:50:17: error: no matching function for call to ‘max()’ arb[r].st=max() ^ user.cpp:50:17: note: candidates are: In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0,

Ceva nu functioneaza?