Borderou de evaluare (job #1302283)
Utilizator | Data | 26 decembrie 2014 19:45:24 | |
---|---|---|---|
Problema | PScPld2D | Status | done |
Runda | Happy Birthday Infoarena 2014 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:130:14: error: cannot convert ‘short int (*)[1010]’ to ‘int (*)[1010]’ for argument ‘1’ to ‘void compute(int (*)[1010])’
compute(p); rotate(a);
^
user.cpp:131:15: error: cannot convert ‘short int (*)[1010]’ to ‘int (*)[1010]’ for argument ‘1’ to ‘void compute(int (*)[1010])’
compute(p2); rotate(a); rotate(p2); // p2 ramane rotat
^
user.cpp:131:38: error: no matching function for call to ‘rotate(short int [1010][1010])’
compute(p2); rotate(a); rotate(p2); // p2 ramane rotat
^
user.cpp:131:38: note: candidates are:
user.cpp:64:6: note: void rotate(char (*)[1010])
void rotate(char a[N][N])
^
user.cpp:64:6: note: no known conversion for argument 1 from ‘short int [1010][1010]’ to ‘char (*)[1010]’
user.cpp:71:6: note: void rotate(int (*)[1010])
void rotate(int a[N][N])
^
user.cpp:71:6: note: no known conversion for argument 1 from ‘short int [1010][1010]’ to ‘int (*)[1010]’
user.cpp:141:17: error: cannot convert ‘short int (*)[1010][1010]’ to ‘int (*)[1010][1010]’ for argument ‘1’ to ‘void build(int (*)[1010][1010], int (*)[1010])’
build(rmq,p2);
^
user.cpp:142:13: error: no matching function for call to ‘rotate(short int [1010][1010])’
rotate(p); build(rmq2,p); rotate(p);
^
user.cpp:142:13: note: candidates are:
user.cpp:64:6: note: void rotate(char (*)[1010])
void rotate(char a[N][N])
^
user.cpp:64:6: note: no known conversion for argument 1 from ‘short int [1010][1010]’ to ‘char (*)[1010]’
user.cpp:71:6: note: void rotate(int (*)[1010])
void rotate(int a[N][N])
^
user.cpp:71:6: note: no known conversion for argument 1 from ‘short int [1010][1010]’ to ‘int (*)[1010]’
user.cpp:142:28: error: cannot convert ‘short int (*)[1010][1010]’ to ‘int (*)[1010][1010]’ for argument ‘1’ to ‘void build(int (*)[1010][1010], int (*)[1010])’
rotate(p); build(rmq2,p); rotate(p);
^
user.cpp:142:39: error: no matching function for call to ‘rotate(short int [1010][1010])’
rotate(p); build(rmq2,p); rotate(p);
^
user.cpp:142:39: note: candidates are:
user.cpp:64:6: note: void rotate(char (*)[1010])
void rotate(char a[N][N])
^
user.cpp:64:6: note: no known conversion for argument 1 from ‘short int [1010][1010]’ to ‘char (*)[1010]’
user.cpp:71:6: note: void rotate(int (*)[1010])
void rotate(int a[N][N])
^
user.cpp:71:6: note: no known conversion for argument 1 from ‘short int [1010][1010]’ to ‘int (*)[1010]’
user.cpp:143:43: error: no matching function for call to ‘rotate(short int [1010][1010])’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !