Borderou de evaluare (job #2939738)
Utilizator | Data | 14 noiembrie 2022 01:14:52 | |
---|---|---|---|
Problema | Snpid | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:32:27: error: stray '#' in program
32 | for (int j = 1; j <= i#include <bits/stdc++.h>
| ^
main.cpp: In function 'int main()':
main.cpp:32:27: error: expected ';' before 'include'
32 | for (int j = 1; j <= i#include <bits/stdc++.h>
| ^~~~~~~~
| ;
main.cpp:32:28: error: 'include' was not declared in this scope
32 | for (int j = 1; j <= i#include <bits/stdc++.h>
| ^~~~~~~
main.cpp:32:37: error: 'bits' was not declared in this scope
32 | for (int j = 1; j <= i#include <bits/stdc++.h>
| ^~~~
main.cpp:32:42: error: 'stdc' was not declared in this scope; did you mean 'std'?
32 | for (int j = 1; j <= i#include <bits/stdc++.h>
| ^~~~
| std
main.cpp:34:1: error: expected primary-expression before 'using'
34 | using namespace std;
| ^~~~~
main.cpp:32:51: error: expected ')' before 'using'
32 | for (int j = 1; j <= i#include <bits/stdc++.h>
| ~ ^
| )
33 |
34 | using namespace std;
| ~~~~~
main.cpp:36:1: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'?
36 | ifstream fin("snpid.in");
| ^~~~~~~~
| std::ifstream
In file included from /usr/include/c++/10/ios:38,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/iosfwd:162:34: note: 'std::ifstream' declared here
162 | typedef basic_ifstream<char> ifstream;
| ^~~~~~~~
main.cpp:37:1: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'?
37 | ofstream fout("snpid.out");
| ^~~~~~~~
| std::ofstream
In file included from /usr/include/c++/10/ios:38,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !