Borderou de evaluare (job #2201526)
Utilizator | Data | 5 mai 2018 01:34:23 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘short int** citireMatrice(short int&)’:
user.cpp:36:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(fin, "%d %d", &colls, &o);
^
user.cpp:36:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:7:13: warning: overflow in implicit constant conversion [-Woverflow]
#define Max 111111111
^
user.cpp:43:20: note: in expansion of macro ‘Max’
matrice[i][j] = Max;
^~~
user.cpp:51:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(fin, "%d %d %d", &a, &b, &c);
^
user.cpp:51:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:51:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=]
user.cpp: In function ‘void Dijkstra(short int**, short int, short int)’:
user.cpp:133:4: error: ‘fprshort’ was not declared in this scope
fprshort intf(fout, "0 ");
^~~~~~~~
user.cpp:135:4: error: ‘fprshort’ was not declared in this scope
fprshort intf(fout, "%d ", distante[i]);
^~~~~~~~
user.cpp:137:2: error: ‘prshort’ was not declared in this scope
prshort intf("\n");
^~~~~~~
user.cpp: At global scope:
user.cpp:146:16: error: ‘::main’ must return ‘int’
short int main()
^
user.cpp: In function ‘short int** citireMatrice(short int&)’:
user.cpp:36:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", &colls, &o);
^
user.cpp:51:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d %d", &a, &b, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !