Submission #715050

# Submission time Handle Problem Language Result Execution time Memory
715050 2023-03-25T21:49:36 Z The_Cat_Person Logičari (COCI21_logicari) C++14
Compilation error
0 ms 0 KB
#include <iostream>

using namespace std;
int n;
cin >> n;

int main()
{
  	i=0
    while (i<n)
    {
      string line;
      cin >> line;
      i++
    }
  	cout <<n;
    return 0;
}

Compilation message

Main.cpp:5:1: error: 'cin' does not name a type
    5 | cin >> n;
      | ^~~
Main.cpp: In function 'int main()':
Main.cpp:9:4: error: 'i' was not declared in this scope
    9 |    i=0
      |    ^