Submission #919058

#TimeUsernameProblemLanguageResultExecution timeMemory
919058brbr7904일차 함수 (tutorial4)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; void solve() { int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); int y = f(0); Report(f(1) - y, y); }

Compilation message (stderr)

tutorial4.cpp: In function 'void solve()':
tutorial4.cpp:7:7: error: redeclaration of 'int y'
    7 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:8:7: error: redeclaration of 'int y'
    8 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:9:7: error: redeclaration of 'int y'
    9 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:10:7: error: redeclaration of 'int y'
   10 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:11:7: error: redeclaration of 'int y'
   11 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:12:7: error: redeclaration of 'int y'
   12 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:13:7: error: redeclaration of 'int y'
   13 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:14:7: error: redeclaration of 'int y'
   14 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:15:7: error: redeclaration of 'int y'
   15 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:16:7: error: redeclaration of 'int y'
   16 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:17:7: error: redeclaration of 'int y'
   17 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:18:7: error: redeclaration of 'int y'
   18 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:19:7: error: redeclaration of 'int y'
   19 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:20:7: error: redeclaration of 'int y'
   20 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:21:7: error: redeclaration of 'int y'
   21 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^
tutorial4.cpp:22:7: error: redeclaration of 'int y'
   22 |   int y = f(0);
      |       ^
tutorial4.cpp:6:7: note: 'int y' previously declared here
    6 |   int y = f(0);
      |       ^