Borderou de evaluare (job #2439517)

Utilizator PopescuDavidPopescu David PopescuDavid Data 16 iulie 2019 10:46:40
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:23:23: error: 'p' was not declared in this scope hasha1=hasha1*p+a[i]; ^ main.cpp:24:23: error: 'mod' was not declared in this scope hasha1=hasha1%mod; ^~~ main.cpp:31:9: error: 'hashb' was not declared in this scope hashb=hashb*p+b[i]; ^~~~~ main.cpp:31:21: error: 'p' was not declared in this scope hashb=hashb*p+b[i]; ^ main.cpp:32:21: error: 'mod' was not declared in this scope hashb=hashb%mod; ^~~ main.cpp:34:8: error: 'hasha' was not declared in this scope if(hasha==hashb) ^~~~~ main.cpp:34:15: error: 'hashb' was not declared in this scope if(hasha==hashb) ^~~~~ main.cpp:40:9: error: 'hashb' was not declared in this scope hashb=(mod+(hashb*p)%mod-(b[i-stra]*c)%mod+b[i])%mod; ^~~~~ main.cpp:40:16: error: 'mod' was not declared in this scope hashb=(mod+(hashb*p)%mod-(b[i-stra]*c)%mod+b[i])%mod; ^~~ main.cpp:40:27: error: 'p' was not declared in this scope hashb=(mod+(hashb*p)%mod-(b[i-stra]*c)%mod+b[i])%mod; ^ main.cpp:41:12: error: 'hasha' was not declared in this scope if(hasha==hashb) ^~~~~ main.cpp:19:24: warning: unused variable 'hashb1' [-Wunused-variable] long long hasha1=0,hashb1=0,c=1,hasha2=0,hashb2=0; ^~~~~~ main.cpp:19:46: warning: unused variable 'hashb2' [-Wunused-variable] long long hasha1=0,hashb1=0,c=1,hasha2=0,hashb2=0; ^~~~~~ Non zero exit status: 1

Ceva nu functioneaza?