Submission #563301

#TimeUsernameProblemLanguageResultExecution timeMemory
563301JANCARAPANMemory (IOI10_memory)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; vector<vector<int>> v(50, vector<int>(50)); // map<int,char> m; void play(){ for (int i=1; i<=50; i++){ char c = faceup(i); v[c-'A'].push_back(i); } for (int i=1; i<=25; i++){ faceup(v[i][0]); faceup[v[i][1]]; } // for (char c = 'a'; c<='y'; c++){ // int pos1=-1, pos2=-1; // for (auto e : m){ // if (e.second == c && pos1 == -1) pos1 = e.first; // else pos2 = e.first; // } // faceup(pos1); // faceup(pos2); // } }sssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:18:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   18 |         faceup[v[i][1]];
      |                       ^
memory.cpp:18:23: warning: value computed is not used [-Wunused-value]
   18 |         faceup[v[i][1]];
      |         ~~~~~~~~~~~~~~^
memory.cpp: At global scope:
memory.cpp:29:2: error: 'sssssssssssssssssssssssssssssssssssssssssssssssssssssssssss' does not name a type
   29 | }sssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~