Borderou de evaluare (job #2749776)
Utilizator | Data | 8 mai 2021 10:15:21 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: stray '\' in program
\#include <bits/stdc++.h>
^
main.cpp:1:2: error: stray '#' in program
\#include <bits/stdc++.h>
^
main.cpp:1:3: error: 'include' does not name a type
\#include <bits/stdc++.h>
^~~~~~~
main.cpp:36:1: error: 'ifstream' does not name a type
ifstream fin("strmatch.in");
^~~~~~~~
main.cpp:37:1: error: 'ofstream' does not name a type
ofstream fout("strmatch.out");
^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:55:5: error: 'fin' was not declared in this scope
fin >> a >> b;
^~~
main.cpp:60:31: warning: array subscript has type 'char' [-Wchar-subscripts]
h = (h * 62 + cod[a[n]]) % P;
^
main.cpp:61:31: warning: array subscript has type 'char' [-Wchar-subscripts]
H = (H * 62 + cod[a[n]]) % Q;
^
main.cpp:74:33: warning: array subscript has type 'char' [-Wchar-subscripts]
h1 = (h1 * 62 + cod[b[i]]) % P;
^
main.cpp:75:33: warning: array subscript has type 'char' [-Wchar-subscripts]
h2 = (h2 * 62 + cod[b[i]]) % Q;
^
main.cpp:84:31: warning: array subscript has type 'char' [-Wchar-subscripts]
h1 = ((h1 - cod[b[i-n]] * pw % P + P) * 62 + cod[b[i]]) % P;
^
main.cpp:84:62: warning: array subscript has type 'char' [-Wchar-subscripts]
h1 = ((h1 - cod[b[i-n]] * pw % P + P) * 62 + cod[b[i]]) % P;
^
main.cpp:85:31: warning: array subscript has type 'char' [-Wchar-subscripts]
h2 = ((h2 - cod[b[i-n]] * PW % Q + Q) * 62 + cod[b[i]]) % Q;
^
main.cpp:85:62: warning: array subscript has type 'char' [-Wchar-subscripts]
h2 = ((h2 - cod[b[i-n]] * PW % Q + Q) * 62 + cod[b[i]]) % Q;
^
main.cpp:92:5: error: 'fout' was not declared in this scope
fout << nrPotriviri << "\n";
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !