Borderou de evaluare (job #1784497)
Utilizator | Data | 20 octombrie 2016 08:48:04 | |
---|---|---|---|
Problema | Algoritmul lui Gauss | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void lire(std::vector<std::vector<double> >&)’:
user.cpp:5:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define xs x.size()
^
user.cpp:19:21: note: in expansion of macro ‘xs’
for (int i=0; i<xs; i++)
^
user.cpp:22:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<x[i].size(); j++)
^
user.cpp: In function ‘void direct(std::vector<std::vector<double> >&)’:
user.cpp:32:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<xs-1; i++)
^
user.cpp:5:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define xs x.size()
^
user.cpp:37:31: note: in expansion of macro ‘xs’
for (int j=i+1; j<xs; j++)
^
user.cpp:5:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define xs x.size()
^
user.cpp:43:27: note: in expansion of macro ‘xs’
for (int j=i+1; j<xs; j++)
^
user.cpp:46:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (k=i; k<xs+1; k++)
^
user.cpp: In function ‘void invers(std::vector<double>&)’:
user.cpp:60:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=i+1; j<a[0].size(); j++)
^
user.cpp: At global scope:
user.cpp:68:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
user.cpp: In function ‘int main()’:
user.cpp:75:19: error: too few arguments to function ‘std::ios_base& std::fixed(std::ios_base&)’
cout << fixed();
^
In file included from /usr/include/c++/4.8/ios:42:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/ios_base.h:958:3: note: declared here
fixed(ios_base& __base)
^
user.cpp:4:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define as a.size()
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !