Submission #1821138


Source Code Expand

Copy
#include <iostream>
using namespace std;

int main()
{
    int answer = 0;
    for(int i =0;i < 8;i++)
    {
        int temp;
        cin >> temp;
        if(temp != 0) answer = temp;
    }
    cout << temp << endl;
    return 0;
}

Submission Info

Submission Time
Task A - Time Penalty
User niuez
Language C++14 (GCC 5.4.1)
Score 0
Code Size 246 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:13:13: error: ‘temp’ was not declared in this scope
     cout << temp << endl;
             ^