Borderou de evaluare (job #605618)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Subșirul comun de lungime maximă (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 7 sept. 2021 14:41:06 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:25:9: error: 'j' was not declared in this scope
25 | for(j=2; j<=n; j++){
| ^
main.cpp:26:13: error: 'i1' was not declared in this scope; did you mean 'i'?
26 | for(i1=1; i1<=m; i1++){
| ^~
| i
main.cpp:28:17: error: 'i2' was not declared in this scope; did you mean 'i'?
28 | for(i2=i; i2<=i+j-i+1; i2++){
| ^~
| i
main.cpp:31:51: error: 'p' was not declared in this scope
31 | if(v2[i2-1]!=v2[i2-1]) {ok=1; p=i2;}
| ^
main.cpp:34:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
34 | cnt++;
| ^~~
| int
main.cpp:36:8: error: 'cnt' was not declared in this scope; did you mean 'int'?
36 | if(cnt>=j) p1=i; p2=p;
| ^~~
| int
main.cpp:36:16: error: 'p1' was not declared in this scope; did you mean 'v1'?
36 | if(cnt>=j) p1=i; p2=p;
| ^~
| v1
main.cpp:36:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
36 | if(cnt>=j) p1=i; p2=p;
| ^~
main.cpp:36:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
36 | if(cnt>=j) p1=i; p2=p;
| ^~
main.cpp:36:22: error: 'p2' was not declared in this scope; did you mean 'v2'?
36 | if(cnt>=j) p1=i; p2=p;
| ^~
| v2
main.cpp:36:25: error: 'p' was not declared in this scope
36 | if(cnt>=j) p1=i; p2=p;
| ^
main.cpp:10:11: warning: unused variable 'a' [-Wunused-variable]
10 | int n, a, i, m, ok=0;
| ^