Borderou de evaluare (job #2439520)

Utilizator PopescuDavidPopescu David PopescuDavid Data 16 iulie 2019 10:48:30
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:27:23: error: 'p' was not declared in this scope hasha1=hasha1*p+a[i]; ^ main.cpp:28:23: error: 'mod' was not declared in this scope hasha1=hasha1%mod; ^~~ main.cpp:35:9: error: 'hashb' was not declared in this scope hashb=hashb*p+b[i]; ^~~~~ main.cpp:35:21: error: 'p' was not declared in this scope hashb=hashb*p+b[i]; ^ main.cpp:36:21: error: 'mod' was not declared in this scope hashb=hashb%mod; ^~~ main.cpp:38:8: error: 'hasha' was not declared in this scope if(hasha==hashb) ^~~~~ main.cpp:38:15: error: 'hashb' was not declared in this scope if(hasha==hashb) ^~~~~ main.cpp:44:9: error: 'hashb' was not declared in this scope hashb=(mod+(hashb*p)%mod-(b[i-stra]*c)%mod+b[i])%mod; ^~~~~ main.cpp:44:16: error: 'mod' was not declared in this scope hashb=(mod+(hashb*p)%mod-(b[i-stra]*c)%mod+b[i])%mod; ^~~ main.cpp:44:27: error: 'p' was not declared in this scope hashb=(mod+(hashb*p)%mod-(b[i-stra]*c)%mod+b[i])%mod; ^ main.cpp:45:12: error: 'hasha' was not declared in this scope if(hasha==hashb) ^~~~~ main.cpp:23:24: warning: unused variable 'hashb1' [-Wunused-variable] long long hasha1=0,hashb1=0,c=1,hasha2=0,hashb2=0; ^~~~~~ main.cpp:23: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?