Borderou de evaluare (job #2753510)
| Utilizator | Data | 23 mai 2021 10:16:57 | |
|---|---|---|---|
| Problema | Oz | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:11:21: error: 'v1' was not declared in this scope
cin >>v[i]>>v1[i]>>div[i];
^~
main.cpp:11:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cin >>v[i]>>v1[i]>>div[i];
^
main.cpp:10:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (i=1; i<=m; i++)
^~~
main.cpp:12:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (i=1; i<=n; i++)
^~~
main.cpp:13:9: error: 'o' was not declared in this scope
o[i] = 1;
^
main.cpp:16:11: error: 'o' was not declared in this scope
a=o[v[i]];
^
main.cpp:17:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
b=div[i];
^
main.cpp:21:12: error: invalid operands of types 'int [100002]' and 'int [100002]' to binary 'operator%'
r=a%b;
~^~
main.cpp:22:11: error: invalid array assignment
a=b;
^
main.cpp:23:11: error: incompatible types in assignment of 'int' to 'int [100002]'
b=r;
^
main.cpp:25:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
o[v[i]]=o[v[i]]/a*div[i];
^
main.cpp:26:17: error: 'v1' was not declared in this scope
a=o[v1[i]];
^~
main.cpp:27:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
b=div[i];
^
main.cpp:30:12: error: invalid operands of types 'int [100002]' and 'int [100002]' to binary 'operator%'
r=a%b;
~^~
main.cpp:31:11: error: invalid array assignment
a=b;
^
main.cpp:32:11: error: incompatible types in assignment of 'int' to 'int [100002]'
b=r;
^
main.cpp:34:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
