Borderou de evaluare (job #1010852)

Utilizator shagarthAladin shagarth Data 15 octombrie 2013 20:14:04
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:2:13: warning: ISO C99 requires whitespace after the macro name [enabled by default] #define NMAX=105 ^ user.cpp:5:11: error: conflicting declaration ‘std::ofstream f’ ofstream f("royfloyd.out"); ^ user.cpp:4:10: error: ‘f’ has a previous declaration as ‘std::ifstream f’ ifstream f("royfloyd.in"); ^ user.cpp:2:13: error: expected primary-expression before ‘=’ token #define NMAX=105 ^ user.cpp:6:9: note: in expansion of macro ‘NMAX’ int n,a[NMAX][NMAX]; ^ user.cpp:2:13: error: expected primary-expression before ‘=’ token #define NMAX=105 ^ user.cpp:6:15: note: in expansion of macro ‘NMAX’ int n,a[NMAX][NMAX]; ^ user.cpp: In function ‘void citire()’: user.cpp:14:16: error: ‘a’ was not declared in this scope f>>a[i][j]; ^ user.cpp: In function ‘void royfloyd()’: user.cpp:26:21: error: ‘a’ was not declared in this scope if (a[i][k] && a[k][j] && (a[i][j]>a[i][k]+a[k][j] || !a[i][j]) && i!=j) ^ user.cpp: In function ‘void afisare()’: user.cpp:38:13: error: ‘g’ was not declared in this scope g<<a[i][j]<<" "; ^ user.cpp:38:16: error: ‘a’ was not declared in this scope g<<a[i][j]<<" "; ^ user.cpp:39:9: error: ‘g’ was not declared in this scope g<<"\n"; ^ user.cpp: In function ‘int main()’: user.cpp:50:5: error: ‘g’ was not declared in this scope g.close(); ^

Ceva nu functioneaza?