Borderou de evaluare (job #2136513)
Utilizator | Data | 19 februarie 2018 22:42:07 | |
---|---|---|---|
Problema | Radix Sort | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
user.cpp: In function ‘int main()’:
user.cpp:9:28: error: ‘ifstream’ was not declared in this scope
ifstream("radixsort.in") >> N >> A >> B >> C;
^
user.cpp:9:28: note: suggested alternative:
In file included from /usr/include/c++/5/ios:38:0,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/sstream:38,
from /usr/include/c++/5/complex:45,
from /usr/include/c++/5/ccomplex:38,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52,
from user.cpp:1:
/usr/include/c++/5/iosfwd:162:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:25:13: error: ‘b’ was not declared in this scope
b[v[i] >> j * 8 & 255].push(v[i]);
^
user.cpp:32:20: error: ‘b’ was not declared in this scope
while(!b[i].empty())
^
user.cpp:41:5: error: ‘ofstream’ was not declared in this scope
ofstream o("radixsort.out");
^
user.cpp:41:5: note: suggested alternative:
In file included from /usr/include/c++/5/ios:38:0,
from /usr/include/c++/5/istream:38,
from /usr/include/c++/5/sstream:38,
from /usr/include/c++/5/complex:45,
from /usr/include/c++/5/ccomplex:38,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52,
from user.cpp:1:
/usr/include/c++/5/iosfwd:165:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:43:32: error: ‘o’ was not declared in this scope
for(i = 0; i < N; i += 10) o << v[i];
^
user.cpp:11:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &N, &A, &B, &C);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !