Problem | diamond_usaco |
---|---|
User | Sheryanne |
Submission Time | 2025-02-19 16:37:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
diamond_usaco.cpp: In function ‘int main()’:
diamond_usaco.cpp:4:10: error: ‘cin’ is not a member of ‘std’
4 | std::cin >> N;
| ^~~
diamond_usaco.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
diamond_usaco.cpp:6:10: error: ‘cin’ is not a member of ‘std’
6 | std::cin >> k;
| ^~~
diamond_usaco.cpp:6:10: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
diamond_usaco.cpp:7:13: error: ‘d’ was not declared in this scope
7 | int arr[d];
| ^
diamond_usaco.cpp:8:15: error: expected ‘;’ before ‘==’ token
8 | for (int i == 0; i < n; i++){
| ^~~
| ;
diamond_usaco.cpp:8:16: error: expected primary-expression before ‘==’ token
8 |