제출 #583545

#제출 시각아이디문제언어결과실행 시간메모리
583545EinsiteinPaint By Numbers (IOI16_paint)C++98
컴파일 에러
0 ms0 KiB
#ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <algorithm> #include <bitset> #include <complex> #include <deque> #include <exception> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <locale> #include <map> #include <memory> #include <new> #include <numeric> #include <ostream> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdexcept> #include <streambuf> #include <string> #include <typeinfo> #include <utility> #include <valarray> #include <vector> using namespace std; string solve_puzzle(string s, int[] c) { return (s.length() - c[0] + 1); }

컴파일 시 표준 에러 (stderr) 메시지

paint.cpp:54:37: error: expected ',' or '...' before 'c'
   54 | string solve_puzzle(string s, int[] c) {
      |                                     ^
paint.cpp: In function 'std::string solve_puzzle(std::string, int*)':
paint.cpp:56:26: error: 'c' was not declared in this scope
   56 |     return (s.length() - c[0] + 1);
      |                          ^