Borderou de evaluare (job #2435687)
Utilizator | Data | 4 iulie 2019 12:40:59 | |
---|---|---|---|
Problema | Alpin | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void read()':
main.cpp:27:16: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
scanf("%d", &n);
^
main.cpp:32:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
scanf("%d", &A[i][j]);
^
main.cpp: In function 'void pickParent(coord&)':
main.cpp:47:32: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
int &maxDepth = depth[c.i][c.j];
~~~~~~~~~~~~~~^
main.cpp: In function 'void solve()':
main.cpp:64:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (short int i = 0; i < M[dist].size(); ++i)
~~^~~~~~~~~~~~~~~~
main.cpp: In function 'void read()':
main.cpp:27:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:32:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &A[i][j]);
^
main.cpp: In function 'int main()':
main.cpp:113:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.in", "r", stdin);
^
main.cpp:114:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !