Borderou de evaluare (job #2973142)
Utilizator | Data | 31 ianuarie 2023 09:13:09 | |
---|---|---|---|
Problema | Cerere | Status | done |
Runda | Teme Pregatire ACM Unibuc 2013 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void afisare()':
main.cpp:14:9: error: 'cout' was not declared in this scope
14 | cout << i << ' ';
| ^~~~
main.cpp:3:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <vector>
+++ |+#include <iostream>
3 | using namespace std;
main.cpp:15:5: error: 'cout' was not declared in this scope
15 | cout << endl;
| ^~~~
main.cpp:15:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp: In function 'int main()':
main.cpp:35:5: error: 'cin' was not declared in this scope
35 | cin >> n;
| ^~~
main.cpp:35:5: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:45:9: error: 'cout' was not declared in this scope
45 | cout << timp[i] << ' ';
| ^~~~
main.cpp:45:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:44:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
44 | for (int i=1; i<=n; i ++ )
| ^~~
main.cpp:46:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
46 | return 0;
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !