Borderou de evaluare (job #1902917)

Utilizator maria_sinteaMaria Sintea maria_sintea Data 4 martie 2017 20:54:02
Problema Suma divizorilor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int prog(int, int)’: user.cpp:39:14: error: ‘mod’ was not declared in this scope put+=mod; ^ user.cpp:40:25: error: expected ‘;’ before ‘)’ token return ((put-1)%n)*l)%n; ^ user.cpp:40:25: error: expected primary-expression before ‘)’ token user.cpp:40:25: error: expected ‘;’ before ‘)’ token user.cpp: In function ‘int sdiv()’: user.cpp:47:12: error: expected primary-expression before ‘long’ while((long long))d*d<=a && a>1) ^ user.cpp:47:12: error: expected ‘)’ before ‘long’ user.cpp:91:1: error: expected ‘)’ at end of input } ^ user.cpp:91:1: error: expected statement at end of input user.cpp:45:9: warning: unused variable ‘d’ [-Wunused-variable] int d=2, s=1; ^ user.cpp:45:14: warning: unused variable ‘s’ [-Wunused-variable] int d=2, s=1; ^ user.cpp:46:15: warning: unused variable ‘p’ [-Wunused-variable] long long p; ^ user.cpp:91:1: error: expected ‘}’ at end of input } ^ user.cpp:91:1: warning: no return statement in function returning non-void [-Wreturn-type]

Ceva nu functioneaza?