Problem | 3nplus1 |
---|---|
User | totallynotme |
Submission Time | 2025-02-21 15:32:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:2: error: ‘array’ was not declared in this scope
8 | array[100000];
| ^~~~~
3nplus1.cpp:2:1: note: ‘std::array’ is defined in header ‘<array>’; did you forget to ‘#include <array>’?
1 | #include <iostream>
+++ |+#include <array>
2 | using namespace std;
3nplus1.cpp:9:10: error: expected ‘)’ before ‘!’ token
9 | while (n ! 1) {
| ~ ^~
| )
3nplus1.cpp:9:14: error: expected ‘;’ before ‘)’ token
9 | while (n ! 1) {
| ^
| ;
3nplus1.cpp:24:7: error: ‘i’ was not declared in this scope
24 | for (i = 0; i < 100000; i++) {
| ^
3nplus1.cpp:24:31: error: expected ‘}’ at end of input
24 | for (i = 0; i < 100000; i++) {
| ^
3nplus1.cpp:24:31: error: expected ‘}’ at end of input
3nplus1.cpp:5:1: note