Borderou de evaluare (job #1608503)
| Utilizator | Data | 22 februarie 2016 09:49:24 | |
|---|---|---|---|
| Problema | Algoritmul lui Dijkstra | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include cstdio
^
user.cpp:4:20: error: expected ‘,’ or ‘;’ before numeric constant
const int inf = 1 30;
^
user.cpp:6:1: error: ‘FILE’ does not name a type
FILE in = fopen(dijkstra.in,r), out = fopen(dijkstra.out,w);
^
user.cpp:11:10: error: field ‘next’ has incomplete type
graf next;
^
user.cpp: In function ‘void add(int, int, int)’:
user.cpp:20:18: error: conversion from ‘graf*’ to non-scalar type ‘graf’ requested
graf q = new graf;
^
user.cpp:21:7: error: ‘nod’ was not declared in this scope
q-nod = what;
^
user.cpp:22:6: error: no match for ‘operator-’ (operand types are ‘graf’ and ‘int’)
q-cost = cost;
^
user.cpp:23:7: error: ‘next’ was not declared in this scope
q-next = a[where];
^
user.cpp: In function ‘void read()’:
user.cpp:29:12: error: ‘in’ was not declared in this scope
fscanf(in, %d %d, &n, &m);
^
user.cpp:29:16: error: expected primary-expression before ‘%’ token
fscanf(in, %d %d, &n, &m);
^
user.cpp:29:29: error: ‘fscanf’ was not declared in this scope
fscanf(in, %d %d, &n, &m);
^
user.cpp:32:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
for ( int i = 1; i = m; ++i )
^
user.cpp:34:20: error: expected primary-expression before ‘%’ token
fscanf(in, %d %d %d, &x, &y, &z);
^
user.cpp: In function ‘void upheap(int)’:
user.cpp:49:19: error: expected ‘)’ before numeric constant
while ( what 1 )
^
user.cpp:49:21: error: expected ‘;’ before ‘)’ token
while ( what 1 )
^
user.cpp:146:1: warning: statement has no effect [-Wunused-value]
}
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
