Borderou de evaluare (job #1329535)

Utilizator tudorcomanTudor Coman tudorcoman Data 29 ianuarie 2015 16:51:05
Problema Tort Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:254:56: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘Mare*’ [-Wformat=] fscanf ( fopen ( "tort.in", "r" ), "%d %d", &a, &b ) ; ^ user.cpp:254:56: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘Mare*’ [-Wformat=] user.cpp:256:7: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive] a ++; ^ user.cpp:257:7: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive] b ++; ^ user.cpp:258:14: error: no match for ‘operator=’ (operand types are ‘Mare’ and ‘Mare’) rezultat = a+b; ^ user.cpp:258:14: note: candidates are: user.cpp:67:13: note: const Mare& Mare::operator=(int) const Mare& Mare :: operator = ( int X ) { // A = X ^ user.cpp:67:13: note: no known conversion for argument 1 from ‘Mare’ to ‘int’ user.cpp:73:13: note: const Mare& Mare::operator=(Mare&) const Mare& Mare :: operator = ( Mare &B ) { // A = B ^ user.cpp:73:13: note: no known conversion for argument 1 from ‘Mare’ to ‘Mare&’ user.cpp:259:7: error: expected ‘;’ before ‘Mare’ a Mare::*= b; ^ user.cpp:259:17: warning: statement has no effect [-Wunused-value] a Mare::*= b; ^ user.cpp:262:58: error: cannot pass objects of non-trivially-copyable type ‘class Mare’ through ‘...’ fprintf ( fopen ( "tort.out", "w" ), "%d\n", rezultat) ; ^ user.cpp:262:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘Mare’ [-Wformat=] user.cpp:254:58: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( fopen ( "tort.in", "r" ), "%d %d", &a, &b ) ; ^

Ceva nu functioneaza?