Borderou de evaluare (job #2253483)
Utilizator | Data | 4 octombrie 2018 08:44:23 | |
---|---|---|---|
Problema | Transform2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Execute_commands(Point*, Point*, std::vector<Operation>*, Position*)’:
user.cpp:219:6: warning: unused variable ‘sq’ [-Wunused-variable]
int sq=ops->size();
^~
user.cpp: In function ‘void Transform_A_to_B(int, std::vector<Operation>*)’:
user.cpp:238:30: error: ‘Transform_A_to_B_lines’ was not declared in this scope
Transform_A_to_B_lines(n,ops);
^
user.cpp:239:32: error: ‘Transform_A_to_B_columns’ was not declared in this scope
Transform_A_to_B_columns(n,ops);
^
user.cpp: In function ‘void Transform_A_to_B_lines(int, std::vector<Operation>*)’:
user.cpp:253:11: error: request for member ‘push_back’ in ‘ops’, which is of pointer type ‘std::vector<Operation>*’ (maybe you meant to use ‘->’ ?)
ops.push_back(aux);
^~~~~~~~~
user.cpp: In function ‘void Transform_A_to_B_columns(int, std::vector<Operation>*)’:
user.cpp:269:11: error: request for member ‘push_back’ in ‘ops’, which is of pointer type ‘std::vector<Operation>*’ (maybe you meant to use ‘->’ ?)
ops.push_back(aux);
^~~~~~~~~
user.cpp: In function ‘void Print_operations(std::vector<Operation>*, FILE*)’:
user.cpp:293:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<ops->size();i++)
~^~~~~~~~~~~~
user.cpp: In function ‘void ReadMat(int, Point*, Point*, FILE*)’:
user.cpp:279:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d %d ",&x,&y);
^
user.cpp: In function ‘int main()’:
user.cpp:310:21: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in,"%d ",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !