Borderou de evaluare (job #651123)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Control (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 mai 2022 15:35:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:9: error: 'cin' was not declared in this scope
13 | cin>>a;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:14:9: error: 'v' was not declared in this scope
14 | v[a]++;
| ^
main.cpp:18:12: error: 'v' was not declared in this scope
18 | if(v[i]!=0)
| ^
main.cpp:20:13: error: 'k' was not declared in this scope
20 | k[numar]=v[i]
| ^