Borderou de evaluare (job #2419146)
Utilizator | Data | 7 mai 2019 18:29:28 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:23:5: error: conflicting declaration 'int a'
int a,b;
^
main.cpp:22:11: note: previous declaration as 'short int a [1030]'
short int a[1030],b[1030],mat[1030][1030];
^
main.cpp:23:7: error: conflicting declaration 'int b'
int a,b;
^
main.cpp:22:19: note: previous declaration as 'short int b [1030]'
short int a[1030],b[1030],mat[1030][1030];
^
main.cpp: In function 'void doo()':
main.cpp:26:17: error: 'n' was not declared in this scope
for(int i=1;i<=n;++i)
^
main.cpp:27:13: error: expected primary-expression before ';' token
for(int j=;j<=m;++j)
^
main.cpp:27:17: error: 'm' was not declared in this scope
for(int j=;j<=m;++j)
^
main.cpp:27:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j=;j<=m;++j)
^~~
main.cpp:32:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return mat[n][m];
^~~~~~
main.cpp:32:15: error: 'n' was not declared in this scope
return mat[n][m];
^
main.cpp:32:18: error: 'm' was not declared in this scope
return mat[n][m];
^
main.cpp:32:19: error: return-statement with a value, in function returning 'void' [-fpermissive]
return mat[n][m];
^
main.cpp: In function 'void recomp(int)':
main.cpp:37:8: error: 'n' was not declared in this scope
int x=n,y=m;
^
main.cpp:39:14: error: 'y' was not declared in this scope
if(a[x]==b[y]){
^
main.cpp: In function 'int main()':
main.cpp:55:6: error: 'n' was not declared in this scope
fin>>n>>m;
^
main.cpp:55:9: error: 'm' was not declared in this scope
fin>>n>>m;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !