Borderou de evaluare (job #1717173)
Utilizator | Data | 14 iunie 2016 14:32:48 | |
---|---|---|---|
Problema | Traseu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:1:25: warning: extra tokens at end of #include directive [enabled by default]
#include <bits/stdc++.h>;
^
user.cpp:5:7: error: ‘pinf’ does not name a type
const pinf=1000;
^
user.cpp:6:7: error: ‘pinf’ was not declared in this scope
int a[pinf][pinf],n,m;
^
user.cpp:6:13: error: ‘pinf’ was not declared in this scope
int a[pinf][pinf],n,m;
^
user.cpp: In function ‘void citire_cost()’:
user.cpp:17:14: error: ‘a’ was not declared in this scope
a[i][j]=0;
^
user.cpp:19:14: error: ‘a’ was not declared in this scope
a[i][j]=pinf;
^
user.cpp:19:22: error: ‘pinf’ was not declared in this scope
a[i][j]=pinf;
^
user.cpp:22:7: error: ‘a’ was not declared in this scope
a[x][y]=a[y][x]=c;}
^
user.cpp: In function ‘void afisare_mat()’:
user.cpp:28:17: error: ‘a’ was not declared in this scope
if(a[i][j]==pinf)
^
user.cpp:28:26: error: ‘pinf’ was not declared in this scope
if(a[i][j]==pinf)
^
user.cpp:29:17: error: reference to ‘cout’ is ambiguous
cout<<"pinf ";
^
user.cpp:4:11: note: candidates are: std::ofstream cout
ofstream cout("traseu.out");
^
In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0,
from user.cpp:1:
/usr/include/c++/4.8/iostream:61:18: note: std::ostream std::cout
extern ostream cout; /// Linked to standard output
^
user.cpp:31:16: error: reference to ‘cout’ is ambiguous
cout<<a[i][j]<<" ";
^
user.cpp:4:11: note: candidates are: std::ofstream cout
ofstream cout("traseu.out");
^
In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:74:0,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !