Borderou de evaluare (job #2114396)

Utilizator EmergencyILCAndrei Tudor Popescu EmergencyILC Data 25 ianuarie 2018 16:16:51
Problema Suma Status done
Runda ichb_9 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:9:12: warning: right operand of comma operator has no effect [-Wunused-value] in>>n,p; ^ user.cpp:11:8: error: ‘n1’ was not declared in this scope if(n1 % 3 == 0) ^ user.cpp:13:13: error: ‘n2’ was not declared in this scope else if(n2 % 3 == 0) ^ user.cpp:18:27: error: ‘n1’ was not declared in this scope long long int calc = (n1*n2)%p; ^ user.cpp:18:30: error: ‘n2’ was not declared in this scope long long int calc = (n1*n2)%p; ^ user.cpp:19:18: error: ‘n3’ was not declared in this scope calc = (calc*n3)%p; ^ user.cpp:21:5: error: expected ‘;’ before ‘return’ return 0; ^ user.cpp:8:23: warning: unused variable ‘nr1’ [-Wunused-variable] long long int n,p,nr1=n,nr2=n-1,nr3=n+1; ^ user.cpp:8:29: warning: unused variable ‘nr2’ [-Wunused-variable] long long int n,p,nr1=n,nr2=n-1,nr3=n+1; ^

Ceva nu functioneaza?