Borderou de evaluare (job #623765)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Leo (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 4 ian. 2022 10:25:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:1: error: 'iftream' does not name a type
6 | iftream cin ("joc3.in");
| ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:32:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
32 | for(i=0;i<=1000000;i++)ciur.push_back(prime[i]);int cer,n;cin>>cer>>n;
| ^~~
main.cpp:32:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
32 | for(i=0;i<=1000000;i++)ciur.push_back(prime[i]);int cer,n;cin>>cer>>n;
| ^~~
main.cpp:32:63: error: 'cin' was not declared in this scope
32 | for(i=0;i<=1000000;i++)ciur.push_back(prime[i]);int cer,n;cin>>cer>>n;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <vector>
+++ |+#include <iostream>
3 |