Borderou de evaluare (job #742182)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cezar (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 nov. 2023 19:11:23 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:5: error: 'cin' was not declared in this scope
12 | cin>>a;
| ^~~
main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
2 | #include <cstring>
+++ |+#include <iostream>
3 |
main.cpp:13:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
13 | for(i=0; i<strlen(a); i++)
| ~^~~~~~~~~~
main.cpp:17:13: error: 'cout' was not declared in this scope
17 | cout<<'a';
| ^~~~
main.cpp:17:13: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:22:13: error: 'cout' was not declared in this scope
22 | cout<<a[i];
| ^~~~
main.cpp:22:13: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?